-
Notifications
You must be signed in to change notification settings - Fork 24
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
specify the minimum width for SplitPane #1570
Comments
Not sure I understand the question. The component that displays the spectrum should be at least 600px and if it is smaller the panels should close. |
in SplitPane we have to set a value to minimunWidth property to make it work, i mean close dynamically if the panel is less than the specified width, would you like to hardcoded the value or it could be changed by the component preferences |
It is not the panel that should have a minimal size because it has a fixed size. It is the space left for the spectrum that should have a minimum size of 600px |
the initialSeparation and minimumSize depend on the sideSeparation in our case the end means the right panel will be closed if it is smaller than 600px, this is the behavior of the SplitPane component, i think we can enhance it by specifying which side to check for minimum width (minimumSizePaneCheck = "start"| "end")or be default take always the opposite of the sideSeparation (if sideSeparation == end takes the start panel and vice versa ) currently if we set minimumSize= 600px will closed the right panel because the initalSpearation is 560px <SplitPane
initialSeparation={general?.initialPanelWidth || '560px'}
orientation="horizontal"
sideSeparation="end"
initialClosed={general?.hidePanelOnLoad || false}
minimumSize={600}
>
{children}
</SplitPane> |
It does not seems that have any application to check the This is a bug in analysis-ui-component and the side that should have the |
@lpatiny
What is the minimum width for SplitPane if there is no room for the panels to close the side panel?
The text was updated successfully, but these errors were encountered: