-
Notifications
You must be signed in to change notification settings - Fork 322
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
Pull for dock with #78
Conversation
@Dirkster99 is this okay so? |
I have done a short test setting the DockWith and DockHeight: <avalonDockLayout:LayoutRoot>
<avalonDockLayout:LayoutPanel Orientation="Vertical">
<avalonDockLayout:LayoutDocumentPane/>
<avalonDockLayout:LayoutAnchorablePane Name="ToolsPane" DockHeight="150" DockWidth="50">
</avalonDockLayout:LayoutAnchorablePane>
</avalonDockLayout:LayoutPanel>
</avalonDockLayout:LayoutRoot> in MLibTest's MainWindow - this let me to the screenshot below where I dragged a tool window off the mainwindow and found that the content of the floatingwindow has the right size while the floatingwindow is larger: I am not 100% sure about our expectations with this pull request so I am trying to spell it out here to make sure testing and later documentation is correct:
The points 1-3 are just proposals (no hard rules so please correct me if I am wrong). The lost point should be resolved in spec so we can test against it. Would you see other test scenarios then the one I've been using here? |
@Dirkster99 does it work now? |
This looks better with regard to the floating window bug - the floating window (or its content) is no longer influenced by the DockWidth - I hope this was your intention(?) - I adjusted 3) to reflect this. Point 4) is also a logical behavior and it seems to be implemented like that at the moment 👍 But for point 1) I am finding a strange behavior which is that tool windows are docked with different sizes if I set the following values:
I hope you can follow these workflows to understand where this is behaving inconsistently - otherwise, let me know if you have issues understanding the issues since I can always attach screenshots as well...
|
My initial indetion was to fix this bug: https://stackoverflow.com/questions/46499858/xceed-avalondock-3-2-dockwidth-height-has-no-effect |
OK I have seen the StackOverflow entry below but it does not say when the DockWidth/DockHeight should be applied or not - so, it does not really present any new helpful information (unless I am missing a listing of testable requirements somewhere...). The thing is that I spent about 10 minutes testing (can't do more right now because of other time constrains) and found 3 different workflows to drag a tool window into an empty docking position and the fix appears to work in only 1 of 3 cases. So, it fixes at best one third of the problem but certainly not the problem itself... |
What I‘d like to fix was setting the DockWith in Pixels when the Container is already docked wich does not work without this patch in my layout... |
Can you please give me a more detailled sample or workflow description so I better understand what you want to fix? One thing I don't understand (for example) is the introduction of the ForceFixedDockSize property at the level of the LayoutPositionableGroup - this makes the property available for:
So, this ForceFixedDockSize property and the support for DockWidth is intended for Documents and LayoutAnchoreables? But I cannot seem to determine what the ForceFixedDockSize property really does because I can set it to true or false but cannot see a difference in the implementation…? I can see that we have a DockWith="100" property set in the TestApp and it controls the initial size of the LayoutAnchorable - thats the use case you want to support, right? But I am not sure about the ForceFixedDockSize property nor do I know whether we need this support for documents as well. It can look really ugly if you set DockWith="50" for the:
|
The DockWidth property is already present in the TestApp project in the current master branch. I set it to 50 and the initial size of the LayoutAnchorable is 50 - so I cannot verify why this does no seem to work the way you want this to work :-( |
The problem description is here: https://stackoverflow.com/questions/46499858/xceed-avalondock-3-2-dockwidth-height-has-no-effect |
No description provided.