mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
fix: panel width differs to size specified in xml
This commit is contained in:
parent
145a7b6273
commit
8cc51a107e
2 changed files with 4 additions and 5 deletions
|
|
@ -244,10 +244,7 @@ static void read_base_panel_impl(
|
|||
if (element.has("padding")) {
|
||||
glm::vec4 padding = element.attr("padding").asVec4();
|
||||
panel.setPadding(padding);
|
||||
glm::vec2 size = panel.getSize();
|
||||
panel.setSize(glm::vec2(
|
||||
size.x + padding.x + padding.z, size.y + padding.y + padding.w
|
||||
));
|
||||
panel.refresh();
|
||||
}
|
||||
if (element.has("orientation")) {
|
||||
auto& oname = element.attr("orientation").getText();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue