haxeui / haxeui-html5

The HTML5 backend of the HaxeUI framework -
http://haxeui.org
MIT License
28 stars 14 forks source link

Certain css styles need to be present in hosting .html file #19

Closed ianharrigan closed 3 years ago

ianharrigan commented 7 years ago

Currently, the following styles my be in the .html file in order for the UI to work correctly:

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Arial';
    font-size: 13px;
    margin: 0;
    width: 100%;
    height: 100%;
}

Expected Behavior

This should happen automatically (not the exact styles, investigation needs to go into which are the minimum / best ones)

Current Behavior

If you dont include these styles then measurement issues arise, which usually, means you dont end up with a visible UI

Possible Solution

A configurable flag somewhere in the backend (defaults to true) that add the most important of these properties automatically.