Skip to content
Discussion options

You must be logged in to vote

Not as a builder option in v0.7.3. Edge docks don't go through the Resizable panel constraints. Their drag size is clamped by DockSizing::clamp, which only enforces a fixed floor of PANEL_MIN_SIZE (100px) and a ceiling that leaves 100px for the center and the opposite dock. So your 100px lower bound is already the default. Only the 500px max needs work.

Workaround: the component skin emits DockEvent::LayoutChanged when a dock resize drag ends. Subscribe and clamp with set_dock_size:

use gpui_kit::component::dock::{DockEvent, DockPlacement};

cx.subscribe_in(&dock_area, window, |_, area, event: &DockEvent, window, cx| {
    if let DockEvent::LayoutChanged = event {
        area.update(cx, …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@marceloadsj
Comment options

@kgeminicdev
Comment options

Answer selected by marceloadsj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants