Check layout instead of style before setting height and width to whatever is set in layout #161

Merged
emilsjolander merged 1 commits from master into master 2016-01-07 04:17:49 -08:00
emilsjolander commented 2016-01-05 11:45:09 -08:00 (Migrated from github.com)

isDimDefined checks is node.style[axis] is defined while in these places we do not care about node.style[axis] but node.layout[axis]. This caused parent height not to be correctly propagated to children.

`isDimDefined` checks is node.style[axis] is defined while in these places we do not care about `node.style[axis]` but `node.layout[axis]`. This caused parent height not to be correctly propagated to children.
vjeux commented 2016-01-05 11:51:00 -08:00 (Migrated from github.com)

Can you add a test case?

Can you add a test case?
emilsjolander commented 2016-01-05 11:51:54 -08:00 (Migrated from github.com)

@vjeux will do

@vjeux will do
lucasr commented 2016-01-06 03:45:54 -08:00 (Migrated from github.com)

@emilsjolander Does this fix alone that bug with a specific height being passed to the measure function?

@emilsjolander Does this fix alone that bug with a specific height being passed to the measure function?
emilsjolander commented 2016-01-06 03:47:14 -08:00 (Migrated from github.com)

@lucasr no. that is more a limitation than a bug

@lucasr no. that is more a limitation than a bug
emilsjolander commented 2016-01-06 05:13:58 -08:00 (Migrated from github.com)

@vjeux updated to include test case. Also changed implementation to avoid some duplicate logic.

@vjeux updated to include test case. Also changed implementation to avoid some duplicate logic.
emilsjolander commented 2016-01-06 05:37:16 -08:00 (Migrated from github.com)

nvm this broke a lot of things in the transpiling. Fixing.

nvm this broke a lot of things in the transpiling. Fixing.
lucasr commented 2016-01-07 04:17:27 -08:00 (Migrated from github.com)

Nice, thanks!

Nice, thanks!
Sign in to join this conversation.
No description provided.