Skip to content

Commit

Permalink
Fixing fluentribbon#459 by changing alignment for Middle and Small size
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen authored and dady8889 committed Aug 23, 2017
1 parent 805c08b commit 8c98bc1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
- [#446](../../issues/446) - Wrong submenu Position in application menu
- [#450](../../issues/450) - Fix Ribbon.OnTitleBarChanged clearing the new title bar instead of the old one (thanks @Cubey2019)
- [#457](../../issues/457) - Using the keytip shortcut to open a backstage briefly opens it, then closes it immediately
- [#459](../../issues/459) - Label of the Spinner disappears, if there isn't enough place

- ### Enhancements
- `LayoutTransform` and `RenderTransform` can now be used directly on `RibbonWindow` as this now gets forwarded to the first template child of the window. Have a look at `TestWindow` in the showcase application for an example on how to use it. This was added as the fix for [#430](../../issues/430).
Expand Down
6 changes: 6 additions & 0 deletions Fluent.Ribbon/Themes/Controls/ComboBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,18 @@
<Setter Property="Visibility"
TargetName="textBlock"
Value="Collapsed" />
<Setter Property="HorizontalAlignment"
TargetName="PART_ContentBorder"
Value="Left" />
</Trigger>
<Trigger Property="Size"
Value="Small">
<Setter Property="Visibility"
TargetName="stackPanel"
Value="Collapsed" />
<Setter Property="HorizontalAlignment"
TargetName="PART_ContentBorder"
Value="Left" />
</Trigger>

<Trigger Property="IsEnabled"
Expand Down
6 changes: 6 additions & 0 deletions Fluent.Ribbon/Themes/Controls/Spinner.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,18 @@
<Setter Property="Visibility"
TargetName="textBlock"
Value="Collapsed" />
<Setter Property="HorizontalAlignment"
TargetName="border"
Value="Left" />
</Trigger>
<Trigger Property="Size"
Value="Small">
<Setter Property="Visibility"
TargetName="stackPanel"
Value="Collapsed" />
<Setter Property="HorizontalAlignment"
TargetName="border"
Value="Left" />
</Trigger>
<Trigger Property="IsMouseOver"
Value="True">
Expand Down

0 comments on commit 8c98bc1

Please sign in to comment.