npolyak / NP.Ava.UniDock

New (Avalonia 11) UniDock repository
MIT License
141 stars 10 forks source link

Draggable border must respect Min/Max Width/Height #17

Open brmassa opened 7 months ago

brmassa commented 7 months ago

If a given panel has some restrictions on it's dimentions, the draggable border do not respect and might end up behind the content

npolyak commented 6 months ago

Can you create a code sample for me? I need to understand better what you mean.

brmassa commented 6 months ago

of course!

        <Grid>
      <np:RootDockGroup TheDockManager="{StaticResource TheDockManager}">
        <np:StackDockGroup TheOrientation="Horizontal">
          <np:StackDockGroup TheOrientation="Vertical">

            <np:StackDockGroup TheOrientation="Horizontal" DockId="LeftPanel" IsStableGroup="True">
              <np:DockItem Header="SceneView">
                <Panel><TextBlock>content</TextBlock></Panel>
              </np:DockItem>
            </np:StackDockGroup>

            <np:TabbedDockGroup DockId="BottomPanel" IsStableGroup="True" Background="red" MinHeight="500" >
              <Panel><TextBlock>content</TextBlock></Panel>
            </np:TabbedDockGroup>
          </np:StackDockGroup>

          <np:TabbedDockGroup DockId="Inspector" IsStableGroup="True" Background="blue" MinWidth="500" >
            <Panel><TextBlock>content</TextBlock></Panel>
          </np:TabbedDockGroup>
        </np:StackDockGroup>
      </np:RootDockGroup>

      <actipro:WindowResizeGrip />
    </Grid>

Try to use the border handler to resize the red or blue panels. if you go beyond the 500 minimum size, the handler will go "behind" the panel and not reachable again

npolyak commented 6 months ago

Please, create a buildable and runnable project somewhere in a place where I can get to it (e.g. you can attach the zipped project to this issue or create a project within a public repository on github).

This will save me some time reproducing this issue.