fix bug issue #2
Merge pull request #3 from LyndonChin/master

fix bug that target will not be displayed when layout_weight is set.