haxeui-core
haxeui-core copied to clipboard
Inconsistent `font-size` inheritance
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:
font-size
applied to individual components:
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.
- Version used: latest from haxelib and the one used in the builder
- Environment name and version (e.g. Chrome 39, node.js 5.4): tested on latest Brave and Edge
- Operating System and version (desktop or mobile): Windows 10
- Link to your project: http://haxeui.org/builder/?a05f44d5