Skip to content

Corrects button bar with button that has an icon#96

Open
Shallowmallow wants to merge 1 commit intohaxeui:masterfrom
Shallowmallow:ButtonBar
Open

Corrects button bar with button that has an icon#96
Shallowmallow wants to merge 1 commit intohaxeui:masterfrom
Shallowmallow:ButtonBar

Conversation

@Shallowmallow
Copy link
Contributor

If you a had a button in a button bar, it would cause problem

<button-bar>
            <button text="Item 1" icon="haxeui-core/styles/default/haxeui_small.png" iconPosition="top" />
 </button-bar>

You would have

../src/gtk/anybutton.cpp(403): assert ""Assert failure"" failed in DoSetBitmapPosition(): invalid position

That's because the bitmapPosition would be set even the value is "enum(0)".

Now, the line seems quite useless, because it seems the basic buttons page in the component explorer work without.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant