forked from 1b-agent/opencadstudio-upstream
fix(properties): embed scrollbar lane
This commit is contained in:
1 parent
d8f5753ffd
commit
8dd3eb897b
1 file changed
+7
-16
+7
-16
@@ -31,8 +31,6 @@ const PATTERN_PREVIEW_H: f32 = 58.0;
|
|||||||
const PATTERN_PICKER_W: f32 = 348.0;
|
const PATTERN_PICKER_W: f32 = 348.0;
|
||||||
const PATTERN_PICKER_H: f32 = 720.0;
|
const PATTERN_PICKER_H: f32 = 720.0;
|
||||||
const LINETYPE_MENU_W: f32 = 220.0;
|
const LINETYPE_MENU_W: f32 = 220.0;
|
||||||
const PROPERTIES_SCROLLBAR_GUTTER: f32 = 16.0;
|
|
||||||
|
|
||||||
use crate::app::Message;
|
use crate::app::Message;
|
||||||
use crate::scene::model::object::{PropSection, PropValue};
|
use crate::scene::model::object::{PropSection, PropValue};
|
||||||
|
|
||||||
@@ -621,12 +619,10 @@ impl PropertiesPanel {
|
|||||||
for section in &self.sections {
|
for section in &self.sections {
|
||||||
col = col.push(self.render_section(section));
|
col = col.push(self.render_section(section));
|
||||||
}
|
}
|
||||||
let gutter = Padding {
|
scrollable(col.width(Length::Fill))
|
||||||
right: PROPERTIES_SCROLLBAR_GUTTER,
|
.spacing(8)
|
||||||
..Padding::ZERO
|
|
||||||
};
|
|
||||||
scrollable(container(col.width(Length::Fill)).padding(gutter))
|
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
|
.height(Length::Fill)
|
||||||
.into()
|
.into()
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -680,15 +676,10 @@ impl PropertiesPanel {
|
|||||||
sections = sections.push(self.render_section(section));
|
sections = sections.push(self.render_section(section));
|
||||||
}
|
}
|
||||||
|
|
||||||
let gutter = Padding {
|
let content = scrollable(sections.width(Length::Fill))
|
||||||
right: PROPERTIES_SCROLLBAR_GUTTER,
|
.spacing(8)
|
||||||
..Padding::ZERO
|
.width(Length::Fill)
|
||||||
};
|
.height(Length::Shrink);
|
||||||
let content = scrollable(
|
|
||||||
container(sections.width(Length::Fill)).padding(gutter),
|
|
||||||
)
|
|
||||||
.width(Length::Fill)
|
|
||||||
.height(Length::Shrink);
|
|
||||||
|
|
||||||
Some(
|
Some(
|
||||||
container(column![title, content].spacing(0))
|
container(column![title, content].spacing(0))
|
||||||
|
|||||||
Reference in new issue
Block a user