Created
January 11, 2017 16:44
-
-
Save caristu/772828e2141a16314a134a1b24bb4549 to your computer and use it in GitHub Desktop.
SmartClient PopUp Style Issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| isc.ClassFactory.defineClass('MyPopUp', isc.Window); | |
| isc.MyPopUp.addProperties({ | |
| title: 'Test', | |
| width: 400, | |
| height: 400, | |
| showEdges: true, | |
| edgeImage: 'https://livebuilds.openbravo.com/erp_pi_pgsql/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/images/popup/border.png', | |
| customEdges: null, | |
| edgeSize: 2, | |
| edgeTop: 27, | |
| edgeBottom: 2, | |
| edgeOffsetTop: 2, | |
| edgeOffsetRight: 2, | |
| edgeOffsetBottom: 2, | |
| showHeaderBackground: false, | |
| showHeaderIcon: true, | |
| backgroundColor: null, | |
| border: null, | |
| styleName: 'OBPopup', | |
| edgeCenterBackgroundColor: '#FFFFFF', | |
| bodyColor: '#FFFFFF', | |
| layoutMargin: 0, | |
| membersMargin: 0, | |
| showShadow: false, | |
| shadowDepth: 5 | |
| }); | |
| isc.MyPopUp.changeDefaults('headerLabelDefaults', { | |
| styleName: 'MyPopupHeaderText', | |
| align: isc.Canvas.CENTER | |
| }); | |
| isc.ClassFactory.defineClass('MyWidget', isc.Portlet); | |
| isc.MyWidget.addProperties({ | |
| headerStyle: 'MyWidgetHeader', | |
| bodyStyle: 'MyWidgetBody', | |
| bodyColor: '#FFFFFF', | |
| showEdges: true, | |
| edgeImage: 'https://livebuilds.openbravo.com/erp_pi_pgsql/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.myob/images/widget/window.png', | |
| customEdges: null, | |
| edgeSize: 2, | |
| edgeTop: 29, | |
| edgeBottom: 2, | |
| edgeOffsetTop: 2, | |
| edgeOffsetRight: 2, | |
| edgeOffsetBottom: 2, | |
| edgeOffsetLeft: 2 | |
| }); | |
| isc.defineClass('SUPTEST_Borders', isc.VLayout).addProperties({ | |
| width: 300, | |
| layoutMargin:5, | |
| membersMargin: 10, | |
| members: [ | |
| isc.Button.create({ | |
| title: "Confirm", | |
| width: 100, | |
| click : function () { | |
| var dialog = isc.MyPopUp.create({}); | |
| dialog.show(); | |
| } | |
| }), | |
| isc.MyWidget.create({}) | |
| ] | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment