Changeset 246:a9e2311db70a


Ignore:
Timestamp:
May 1, 2011, 5:31:27 PM (13 years ago)
Author:
Evgeny Stambulchik <Evgeny.Stambulchik@…>
Branch:
default
Phase:
public
Message:

Dynamically update min/max values of the n_u and n_l spinners to make sure n_u

n_l.

File:
1 edited

Legend:

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

    r245 r246  
    129129    var n_u = parseInt(e.getValue());
    130130   
     131    this.gui_n_l.setMaximum(n_u - 1);
     132   
    131133    this.plasma.n_u = n_u;
    132134    this.updateGUI();
     
    137139    var e = ev.getTarget();
    138140    var n_l = parseInt(e.getValue());
     141   
     142    this.gui_n_u.setMinimum(n_l + 1);
    139143   
    140144    this.plasma.n_l = n_l;
     
    10611065            l.setRich(true);
    10621066            gl.add(l, {row: 1, column: 0});
    1063             e = new qx.ui.form.Spinner(2, this.plasma.n_u, 1000);
     1067            e = new qx.ui.form.Spinner(this.plasma.n_l + 1, this.plasma.n_u, 1000);
    10641068            gl.add(e, {row: 1, column: 1});
    10651069            e.addListener("changeValue", changeN_u, this);
     
    10691073            l.setRich(true);
    10701074            gl.add(l, {row: 2, column: 0});
    1071             e = new qx.ui.form.Spinner(1, this.plasma.n_l, 1000);
     1075            e = new qx.ui.form.Spinner(1, this.plasma.n_l, this.plasma.n_u - 1);
    10721076            gl.add(e, {row: 2, column: 1});
    10731077            e.addListener("changeValue", changeN_l, this);
Note: See TracChangeset for help on using the changeset viewer.