haxeui / haxeui-heaps

MIT License
31 stars 12 forks source link

fix crash when using styles + resizing the window #27

Closed radiatoryang closed 3 years ago

radiatoryang commented 3 years ago

when resizing the window (on HashLink), I guess heaps or haxeui recreates a bunch of objects or something? and then this style helper is trying to touch the styles for containers that have been nulled, causing a crash?

so I just added this null check to fix it, works well for me at least!

ianharrigan commented 3 years ago

thanks!