Bug 982855 - Passing {position:button} in a panel's constructor does not work

- Issue fixed, test case modified.
Merge pull request #1430 from ZER0/panel-button/982855

fix Bug 982855 - Passing {position:button} in a panel's constructor does not work r=@gozala