We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaf12d5 commit 8a19e38Copy full SHA for 8a19e38
dart/lib/splitter/splitter_panel.dart
@@ -72,6 +72,8 @@ class SplitterPanel {
72
*/
73
void setContainerRatio(IDockContainer container, num ratio) {
74
num splitPanelSize = stackedVertical ? panelElement.client.height : panelElement.client.width;
75
+ if (splitPanelSize <= 0) splitPanelSize = 1;
76
+
77
num newContainerSize = splitPanelSize * ratio;
78
int barSize = stackedVertical ? spiltterBars[0].barElement.client.height : spiltterBars[0].barElement.client.width;
79
0 commit comments