Explorar o código

desktop panel fix bottom padding

milan jurkulák %!s(int64=2) %!d(string=hai) anos
pai
achega
0f52f0aca6

+ 4 - 2
src/main/kotlin/eu/mjdev/desktop/components/desktoppanel/DesktopPanel.kt

@@ -57,8 +57,10 @@ fun DesktopPanel(
     tooltipData: MutableState<Any?> = mutableStateOf(null),
     onTooltip: (item: Any?) -> Unit = { item -> tooltipData.value = item },
     panelHeight: (visible: Boolean) -> Dp = { visible ->
-        if (visible) iconSize.height + iconOuterPadding.height + tooltipHeight + panelContentPadding.height + 8.dp
-        else dividerWidth
+        if (visible)
+            iconSize.height + iconOuterPadding.height + tooltipHeight + panelContentPadding.height + 10.dp
+        else
+            dividerWidth
     },
     onMenuIconClicked: () -> Unit = {},
     onFocusChange: (Boolean) -> Unit = {},