haxeui / haxeui-core

The core library of the HaxeUI framework
http://haxeui.org
MIT License
345 stars 71 forks source link

Inconsistent `font-size` inheritance #545

Open Gioele-Bencivenga opened 1 year ago

Gioele-Bencivenga commented 1 year ago

Expected Behavior

font-size increases coming from the parent component (vbox in this case) lead borders and other attributes to be correctly recalculated by the children

Current Behavior

Children of the vbox have the font-size applied but no change in bounds and/or spacing

Possible Solution

I don't know haxeui's internal working enough to suggest how to solve this :(

Steps to Reproduce (for bugs)

Builder example with font-size applied to parent vbox: http://haxeui.org/builder/?a05f44d5

Builder example with font-size applied to some individual components: http://haxeui.org/builder/?f96aa6ff

Media

font-size applied to parent: image

font-size applied to individual components: image

Test app / minimal test case

Builder example with font-size applied to parent vbox: http://haxeui.org/builder/?a05f44d5

Builder example with font-size applied to some individual components: http://haxeui.org/builder/?f96aa6ff

Context

I'm trying to have a larger application-wide font and this problem forces me to specify it in lots of different places.

Your Environment

Experienced in latest haxeui version, html5 app.