Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brmassa opened this issue Feb 16, 2024 · 3 comments
Open

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

brmassa opened this issue Feb 16, 2024 · 3 comments

Comments

@brmassa
Copy link

brmassa commented Feb 16, 2024

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
Copy link
Owner

npolyak commented Feb 25, 2024

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

@brmassa
Copy link
Author

brmassa commented Feb 26, 2024

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
Copy link
Owner

npolyak commented Feb 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants