Ignore:
Timestamp:
Jan 14, 2009, 12:15:08 PM (16 years ago)
Author:
fnevgeny
Branch:
default
Phase:
public
Message:

Finally, proper geometric management of the "Parameters" tab elements.
null -> undefined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/class/pf/Application.js

    r101 r102  
    10291029                "pf/image/tab-parameters.png", true);
    10301030
    1031             var fr, gl;
     1031            var fr, gl, rc, rc1, rc2;
     1032
     1033            rc = new qx.legacy.ui.layout.HorizontalBoxLayout;
     1034            rc.setWidth("100%");
     1035            rc.setHeight("auto");
     1036            rc.setSpacing(0);
     1037            page_id.add(rc);
     1038           
     1039            rc1 = new qx.legacy.ui.layout.VerticalBoxLayout;
     1040            rc1.setWidth("50%");
     1041            rc1.setHeight("auto");
     1042            rc1.setSpacing(0);
     1043            rc.add(rc1);
     1044           
     1045            rc2 = new qx.legacy.ui.layout.VerticalBoxLayout;
     1046            rc2.setWidth("50%");
     1047            rc2.setHeight("auto");
     1048            rc2.setSpacing(0);
     1049            rc.add(rc2);
    10321050           
    10331051            fr = new qx.legacy.ui.groupbox.GroupBox("Electrons",
    10341052                "pf/image/e_small.png");
    1035             fr.setDimension("auto", "auto");
     1053            fr.setDimension("100%", "auto");
    10361054            fr.setBackgroundColor("#eeeeff");
    10371055
    1038             page_id.add(fr);
     1056            rc1.add(fr);
    10391057
    10401058            gl = new qx.legacy.ui.layout.GridLayout;
     1059            gl.setWidth("100%");
    10411060            gl.setVerticalSpacing(4);
    10421061            gl.setHorizontalSpacing(6);
    10431062            gl.setColumnCount(2);
    1044             gl.setColumnWidth(0, 100);
    1045             gl.setColumnWidth(1, 260);
     1063            gl.setColumnWidth(0, "25%");
     1064            gl.setColumnWidth(1, "75%");
    10461065            gl.setRowCount(2);
    10471066            gl.setRowHeight(0, 30);
     
    10711090            fr = new qx.legacy.ui.groupbox.GroupBox("Ions",
    10721091                "pf/image/i_small.png");
    1073             fr.setDimension("auto", "auto");
     1092            fr.setDimension("100%", "auto");
    10741093            fr.setBackgroundColor("#ffeeee");
    10751094
    1076             page_id.add(fr);
    1077             fr.setTop(100);
     1095            rc1.add(fr);
    10781096
    10791097            gl = new qx.legacy.ui.layout.GridLayout;
     1098            gl.setWidth("100%");
    10801099            gl.setVerticalSpacing(4);
    10811100            gl.setHorizontalSpacing(6);
    10821101            gl.setColumnCount(2);
    1083             gl.setColumnWidth(0, 100);
    1084             gl.setColumnWidth(1, 260);
     1102            gl.setColumnWidth(0, "25%");
     1103            gl.setColumnWidth(1, "75%");
    10851104            gl.setRowCount(4);
    10861105            gl.setRowHeight(0, 30);
     
    11261145            fr = new qx.legacy.ui.groupbox.GroupBox("Radiators",
    11271146                "pf/image/r_small.png");
    1128             fr.setDimension("auto", "auto");
     1147            fr.setDimension("100%", "auto");
    11291148            fr.setBackgroundColor("#eeffee");
    11301149
    1131             page_id.add(fr);
    1132             fr.setLeft(390);
     1150            rc2.add(fr);
    11331151
    11341152            gl = new qx.legacy.ui.layout.GridLayout;
     1153            gl.setWidth("100%");
    11351154            gl.setVerticalSpacing(4);
    11361155            gl.setHorizontalSpacing(6);
    11371156            gl.setColumnCount(2);
    1138             gl.setColumnWidth(0, 100);
    1139             gl.setColumnWidth(1, 260);
     1157            gl.setColumnWidth(0, "25%");
     1158            gl.setColumnWidth(1, "75%");
    11401159            gl.setRowCount(5);
    11411160            gl.setRowHeight(0, 30);
     
    11881207            fr = new qx.legacy.ui.groupbox.GroupBox("Fields",
    11891208                "pf/image/field_small.png");
    1190             fr.setDimension("auto", "auto");
     1209            fr.setDimension("100%", "auto");
    11911210            fr.setBackgroundColor("#ffffdd");
    11921211
    1193             page_id.add(fr);
     1212            rc1.add(fr);
    11941213
    11951214            gl = new qx.legacy.ui.layout.GridLayout;
     1215            gl.setWidth("100%");
    11961216            gl.setVerticalSpacing(4);
    11971217            gl.setHorizontalSpacing(6);
    11981218            gl.setColumnCount(2);
    1199             gl.setColumnWidth(0, 100);
    1200             gl.setColumnWidth(1, 260);
     1219            gl.setColumnWidth(0, "25%");
     1220            gl.setColumnWidth(1, "75%");
    12011221            gl.setRowCount(1);
    12021222            gl.setRowHeight(0, 30);
    12031223
    12041224            fr.add(gl);
    1205             fr.setTop(268);
    12061225
    12071226
     
    12161235            fr = new qx.legacy.ui.groupbox.GroupBox("Atomic system",
    12171236                "pf/image/all_small.png");
    1218             fr.setDimension("auto", "auto");
     1237            fr.setDimension("100%", "auto");
    12191238            fr.setBackgroundColor("#ffffdd");
    12201239
    1221             page_id.add(fr);
     1240            rc2.add(fr);
    12221241
    12231242            gl = new qx.legacy.ui.layout.GridLayout;
     1243            gl.setWidth("100%");
    12241244            gl.setVerticalSpacing(4);
    12251245            gl.setHorizontalSpacing(6);
    12261246            gl.setColumnCount(2);
    1227             gl.setColumnWidth(0, 100);
    1228             gl.setColumnWidth(1, 260);
     1247            gl.setColumnWidth(0, "25%");
     1248            gl.setColumnWidth(1, "75%");
    12291249            gl.setRowCount(3);
    12301250            gl.setRowHeight(0, 30);
     
    12331253
    12341254            fr.add(gl);
    1235             fr.setLeft(390);
    1236             fr.setTop(202);
    12371255
    12381256            l = new qx.legacy.ui.basic.Label("Z<sub>core</sub>:");
     
    21782196        {
    21792197            var prefstr = qx.legacy.io.local.CookieApi.get("pf_prefs");
    2180             // this.warn(prefstr);
     2198           
    21812199            if (prefstr) {
    21822200                this.prefs = qx.util.Json.parseQx(prefstr);
     
    21872205            }
    21882206 
    2189             if (null === this.prefs.rememberWindowSize) {
     2207            if (undefined === this.prefs.rememberWindowSize) {
    21902208                this.prefs.rememberWindowSize = false;
    21912209            }
    21922210
    2193             if (null === this.prefs.autoLoadWiki) {
     2211            if (undefined === this.prefs.autoLoadWiki) {
    21942212                this.prefs.autoLoadWiki = true;
    21952213            }
Note: See TracChangeset for help on using the changeset viewer.