Important! A new Community experience launched on September 26, 2017. Read more about it here or continue to Base Camp.
Vote up!
0 Votes
0 Replies

FlexContainer Location and Padding

Question asked by Bayan Siddiek on Mar 01, 2017 13:11 EST

Hello Experts ,  Would you please explain the purpose of using Location and Padding values in the code below? As I have commented them in the code and I’m afraid it affects anything related to layout . ·           "Location": "[0,112]", ·          "padding": [0, 0, 0, 0] var FlexMainB = new kony.ui.FlexContainer({                     "id": "FlexMainB",                     "top": "25%",                     "left": "0%",                     "width": main_width+"%",                     "height": "100%",                     "zIndex": 10,                     "isVisible": true,                     "clipBounds": true,                     "Location": "[0,112]",                     "skin": "flxtrans",                     "layoutType": kony.flex.FREE_FORM                         }, {                     "padding": [0, 0, 0, 0]                         }, {});                FlexMainB.setDefaultUnit(kony.flex.DP);                frmName.flXMain.add(FlexMainB);   Also i tried to craete a form in the visulaizerthen use generated jss file  to use it as a dynamic widget but i didn't get Location value ? so form where can i get it for the added Flexes ?