Add props to style (remaining) menu padding attributes.
This commit is contained in:
parent
06f1c504e7
commit
702380c591
1 changed files with 9 additions and 0 deletions
|
@ -138,6 +138,15 @@ module.exports = {
|
||||||
if (!isNaN(Number(props.menuPaddingTop))) {
|
if (!isNaN(Number(props.menuPaddingTop))) {
|
||||||
menuStyle["paddingTop"] = props.menuPaddingTop;
|
menuStyle["paddingTop"] = props.menuPaddingTop;
|
||||||
}
|
}
|
||||||
|
if (!isNaN(Number(props.menuPaddingLeft))) {
|
||||||
|
menuStyle["paddingLeft"] = props.menuPaddingLeft;
|
||||||
|
}
|
||||||
|
if (!isNaN(Number(props.menuPaddingBottom))) {
|
||||||
|
menuStyle["paddingBottom"] = props.menuPaddingBottom;
|
||||||
|
}
|
||||||
|
if (!isNaN(Number(props.menuPaddingRight))) {
|
||||||
|
menuStyle["paddingRight"] = props.menuPaddingRight;
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: If a menu uses getDefaultProps it clobbers the onFinished
|
// FIXME: If a menu uses getDefaultProps it clobbers the onFinished
|
||||||
// property set here so you can't close the menu from a button click!
|
// property set here so you can't close the menu from a button click!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue