New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckGroupBox does not disable inner elements when the parent element gets disabled #9350

Open
helmut-kleinhans opened this Issue Jun 26, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@helmut-kleinhans

helmut-kleinhans commented Jun 26, 2017

You could use this code to see the result in the playground.
When you click the "disable window" button everything works fine, but when the checkbox of the CheckGroupBox is operated twice (deactivate/activate) the inner elements are not longer set to disabled if the window is set to disabled.

==================== playground sample =============================
`
var win = new qx.ui.window.Window("First Window");
win.setWidth(300);
win.setHeight(200);
win.setShowMinimize(false);
win.setLayout( new qx.ui.layout.VBox() );

var btn1 = new qx.ui.form.Button('disable window')
var btn2 = new qx.ui.form.Button('enable window')
var btn3 = new qx.ui.form.Button('a button in the group box')
btn1.addListener('execute',function(){win.setEnabled(false)});
btn2.addListener('execute',function(){win.setEnabled(true)});
btn3.addListener('execute',function(){ qx.log.Logger.info(qx.application.Standalone,'click done')});

win.add(btn1 );
var groupbox = new qx.ui.groupbox.CheckGroupBox("test group");
groupbox.setLayout( new qx.ui.layout.VBox() );
groupbox.add( btn3 );
win.add(groupbox);

this.getRoot().add(btn2,{left:20, top:10});

this.getRoot().add(win, {left:150, top:10});
win.open();
`

@level420

This comment has been minimized.

Show comment
Hide comment
@level420

level420 Jun 27, 2017

Member

Verified on master and 5.0.2: both show the described effect.

Member

level420 commented Jun 27, 2017

Verified on master and 5.0.2: both show the described effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment