View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001432 | NoesisGUI | Unity | public | 2019-03-20 09:55 | 2019-04-01 17:39 |
| Reporter | Khonan | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.2.0 | ||||
| Target Version | 2.2.1 | Fixed in Version | 2.2.1 | ||
| Summary | 0001432: incorrect <Expander> size | ||||
| Description | Having 3 <Expander>, once collapsed each are of different size based upon their content. The more elements you have the more the <expander> will be big once collapsed. | ||||
| Steps To Reproduce | <Grid Grid.Column="0" VerticalAlignment="Stretch"> | ||||
| Attached Files | |||||
| Platform | Windows | ||||
|
Upon what your Expander hold, you can get a very large error in height (as seen in the "categories" expander screenshot) |
|
|
I tried the attached xaml in our XamlPlayer and it seems to behave like expected. |
|
|
Here it is, You'll have to remove some StaticResources and so as I'm a bit in the hurry. Sorry Thanks for the help. Noesis is a great tool ! MainWindow.xaml (12,450 bytes)
<UserControl x:Class="Atome2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
xmlns:local="clr-namespace:Atome2"
Background="#001A1A1D" d:DesignWidth="1000" d:DesignHeight="800" VerticalAlignment="Stretch">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Atome2Style.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid x:Name="itGridMainContainer">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!--*****************************-->
<!-- ROW 0 - TOP BAR -->
<Grid Grid.Row="0" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Top" Background="#FF1A1A1D">
<Image Source="Resources/Images/userface.png" Width="60" Height="60" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="10,5,10,10" Panel.ZIndex="10"/>
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal" Margin="5,5,0,0">
<Image Source="Resources/Images/iconAtm2.png" Width="30" Height="20"/>
<TextBlock x:Name="itTextBlockTitle" VerticalAlignment="Center" Margin="10,0,0,0" Foreground="#FF969A9E">XTool - ATOME² BIM</TextBlock>
</StackPanel>
<Menu>
<MenuItem Header="{StaticResource locFile}">
<MenuItem x:Name="itMenuFileLoad" Header="Load"></MenuItem>
<MenuItem x:Name="itMenuFileSave" Header="Save" IsEnabled="False"></MenuItem>
<MenuItem x:Name="itMenuFileSaveAs" Header="Save As" IsEnabled="False"></MenuItem>
<Separator></Separator>
<MenuItem x:Name="itMenuQuit" Header="Quit"></MenuItem>
</MenuItem>
</Menu>
<TabControl>
<TabItem Header="View 3D">
<DockPanel>
<Button DockPanel.Dock="Right" x:Name="itButtonViewFilters" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,0,0" Height="20.98" Width="108">FILTERS</Button>
<Button DockPanel.Dock="Right" x:Name="itButtonViewClashes" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="10,0,10,0" Height="20.98" Width="108">CLASHES</Button>
</DockPanel>
</TabItem>
<TabItem Header="Settings">
</TabItem>
<TabItem Header="">
</TabItem>
</TabControl>
</StackPanel>
<!--
<Image Source="Resources/Images/ChessBoard.png" Margin="-328.5,-1.5,328.5,1.5"></Image>
-->
</Grid>
<!--*****************************-->
<!-- ROW 1 - VIEW AREA -->
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<!-- COL 0 - LEFT PANEL -->
<Grid Grid.Column="0" VerticalAlignment="Stretch">
<StackPanel x:Name="itGridViewLeft" Orientation="Vertical" VerticalAlignment="Top" Background ="#CC1A1A1D">
<Grid Width="400" ScrollViewer.VerticalScrollBarVisibility="Visible">
<Expander Header="locCategories" ExpandDirection="Down" IsExpanded="False">
<Grid>
<ListBox x:Name="ititit" SelectionMode="Single" MouseDoubleClick="ItListViewFiles_MouseDoubleClick">
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
</ListBox>
</Grid>
</Expander>
</Grid>
<Grid Width="400" ScrollViewer.VerticalScrollBarVisibility="Visible">
<Expander Header="locCategories" ExpandDirection="Down" IsExpanded="False">
<Grid>
<ListBox x:Name="itit" SelectionMode="Single" MouseDoubleClick="ItListViewFiles_MouseDoubleClick">
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
<TextBlock>ITEM ITEM</TextBlock>
</ListBox>
</Grid>
</Expander>
</Grid>
</StackPanel>
</Grid>
<!-- COL 1 - CENTER -->
<Grid x:Name="itGridViewCenter" Grid.Column="1" VerticalAlignment="Stretch">
</Grid>
<!-- COL 2 - RIGHT PANEL -->
<Grid Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Top" ScrollViewer.VerticalScrollBarVisibility="Visible">
<ScrollViewer>
<StackPanel x:Name="itGridViewRight" Orientation="Vertical" VerticalAlignment="Top" Background ="#CC1A1A1D">
</StackPanel>
</ScrollViewer>
</Grid>
</Grid>
<!--*****************************-->
<!-- ROW 1 - FOOTER -->
<Grid Grid.Row="2">
</Grid>
</Grid>
</Grid>
</UserControl>
|
|
|
This is how that xaml look when loaded in XamlPlayer, I think collapsed Expanders look fine. |
|
|
Hummm interesting :) Atome2Style is just for color style... However removing it makes the expander fine... Replacing it by NoturnalStyle from the samples folder makes it buggy again |
|
|
Ok, looking at that style I see what is happening, the Expander template uses a ScaleTransform to collapse the content, but the ScaleY value is incorrectly set to 0.01, instead of just 0. |
|
|
Nice ! Thanks a lot. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-03-20 09:55 | Khonan | New Issue | |
| 2019-03-20 09:55 | Khonan | Tag Attached: Expander | |
| 2019-03-20 11:12 | Khonan | File Added: Capture.PNG | |
| 2019-03-20 11:12 | Khonan | Note Added: 0005543 | |
| 2019-03-21 03:45 | sfernandez | Assigned To | => sfernandez |
| 2019-03-21 03:45 | sfernandez | Status | new => feedback |
| 2019-03-21 03:45 | sfernandez | Note Added: 0005545 | |
| 2019-03-21 08:07 | Khonan | File Added: MainWindow.xaml | |
| 2019-03-21 08:07 | Khonan | Note Added: 0005546 | |
| 2019-03-21 08:07 | Khonan | Status | feedback => assigned |
| 2019-03-21 16:24 | sfernandez | File Added: expander.png | |
| 2019-03-21 16:24 | sfernandez | Note Added: 0005548 | |
| 2019-03-21 16:25 | sfernandez | Status | assigned => feedback |
| 2019-03-21 17:19 | Khonan | File Added: NocturnalStyle.xaml | |
| 2019-03-21 17:19 | Khonan | Note Added: 0005550 | |
| 2019-03-21 17:19 | Khonan | Status | feedback => assigned |
| 2019-03-22 06:55 | sfernandez | Status | assigned => feedback |
| 2019-03-22 06:55 | sfernandez | Note Added: 0005552 | |
| 2019-03-23 16:35 | Khonan | Note Added: 0005553 | |
| 2019-03-23 16:35 | Khonan | Status | feedback => assigned |
| 2019-04-01 17:39 | sfernandez | Status | assigned => resolved |
| 2019-04-01 17:39 | sfernandez | Resolution | open => fixed |
| 2019-04-01 17:39 | sfernandez | Fixed in Version | => 2.2.1 |
| 2019-04-01 17:39 | sfernandez | Target Version | => 2.2.1 |
| 2019-04-01 17:39 | sfernandez | Description Updated | |
| 2025-10-10 13:29 | jsantos | Category | Unity3D => Unity |