Skip to content

Commit

Permalink
fix: increased control aprox height for initial calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Jan 26, 2025
1 parent bbf8c16 commit 4201750
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/TresLeches.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ const DEFAULT_WIDTH = 300
const COLLAPSED_SIZE = 36
const MIN_HEIGHT = 100 // Minimum height for the panel
const MAX_HEIGHT = 600 // Maximum height for the panel
const CONTROL_HEIGHT = 40 // Approximate height per control
const CONTROL_HEIGHT = 46 // Approximate height per control
const FPS_GRAPH_EXTRA_HEIGHT = 12 // Extra padding needed for FPS graph
const MARGIN_FROM_BOTTOM = 40 // Margin to keep from bottom of viewport
const MARGIN_FROM_BOTTOM = 42 // Margin to keep from bottom of viewport
const panelWidth = ref(DEFAULT_WIDTH)
const manualHeight = ref<number | null>(null) // Track manual height override
Expand Down Expand Up @@ -77,7 +77,7 @@ const groupedControls = computed(() => {
})
const panelHeight = computed(() => {
if (isCollapsedAndNotFloat.value) { return 28 } // Height when collapsed
if (isCollapsedAndNotFloat.value) { return COLLAPSED_SIZE } // Height when collapsed
// If manually resized, use that height within constraints
if (manualHeight.value !== null) {
Expand Down

0 comments on commit 4201750

Please sign in to comment.