Commit 942e317
Fix missing backgrounds in RecentPinnedLocations and GroupBox (#23)
* Fix missing backgrounds in RecentPinnedLocations and GroupBox
- RecentPinnedLocations template was missing a Background binding on its
Grid, unlike all sibling container templates (ArrayPanel, Container, etc.).
Added the same StringToBrushConverter binding.
- GroupBox content-area background used FallbackValue=#66212121, which only
fires on binding errors. When StringToBrushConverter returns null (empty
string or null Background value), Avalonia sets the property to null
(transparent). Changed to TargetNullValue so the default dark fill is
applied whenever the converter produces null.
Fixes #16
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Fix missing backgrounds in RecentPinnedLocations and GroupBox
- RecentPinnedLocations Grid was missing a Background binding; added
StringToBrushConverter binding matching all other container templates
- GroupBox content area used FallbackValue for null Background; changed
to TargetNullValue so the default #66212121 fill applies when the
converter returns null (not just on binding errors)
- ScrollPanel content now has MinHeight bound to the ScrollViewer's
viewport height so DockPanel LastChildFill works correctly: Avalonia's
ScrollViewer passes infinite height to content, collapsing the GroupBox
to zero height when empty; the MinHeight constraint gives the DockPanel
a finite lower bound while still allowing overflow scrolling
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Fix ScrollPanel content not filling viewport for DockPanel LastChildFill
The previous fix (MinHeight only) was insufficient: the default StackPanel
items panel gives each child only its desired height regardless of MinHeight,
so the inner DockPanel never received the viewport height as a finite
constraint and LastChildFill could not allocate remaining space to the
Pinned Locations GroupBox.
Fix: switch the ScrollPanel items panel from StackPanel to Grid. A Grid
stretches its single content child to fill the full arranged height, so
the DockPanel receives a finite height equal to the viewport and
LastChildFill correctly allocates remaining space to the last child.
MinHeight is retained to ensure the Grid's arranged height is at least
the ScrollViewer's visible viewport height even when content is shorter,
while content taller than the viewport still overflows and scrolls.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: EmoSaru <emosaru@emosaru.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5eecc9f commit 942e317
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
375 | | - | |
| 376 | + | |
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| |||
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
412 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
413 | 427 | | |
414 | 428 | | |
415 | 429 | | |
| |||
0 commit comments