Skip to content

Commit 6e32d3a

Browse files
committed
Fixed HorizontalBox::new to return a HorizontalBox instead of a VerticalBox
1 parent d52fe39 commit 6e32d3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iui/src/controls/layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ impl VerticalBox {
3737

3838
impl HorizontalBox {
3939
/// Create a new horizontal box layout.
40-
pub fn new(_ctx: &UI) -> VerticalBox {
41-
VerticalBox {
40+
pub fn new(_ctx: &UI) -> HorizontalBox {
41+
HorizontalBox {
4242
uiBox: unsafe { ui_sys::uiNewHorizontalBox() },
4343
}
4444
}

0 commit comments

Comments
 (0)