Skip to content

Commit 8ae6eb1

Browse files
authored
Merge pull request #7 from ZakCodes/hbox-fix
Fixed HorizontalBox::new to return a HorizontalBox instead of a VerticalBox
2 parents d52fe39 + 6e32d3a commit 8ae6eb1

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)