Bug #3984
closedwt-3.3.4 WDoubleSpinBox::setReadOnly(true) does not work
0%
Description
Hi,
I just wanted to use the readonly flag of a WDoubleSpinBox object. But this seems not to work.
Inspecting the generated HTML it looks like the attribute readonly is there but empty:
<input id="o6t0ijl" maxlength="10" name="o6t0ijl" size="10" title="Threshold 2" onchange="var e=event||window.event,o=this;{var f=function(o){Wt3_3_4.validate(o)};f(o,e);}Wt._p_.update(o,'sb92',e,true);"
... readonly="" ...
class="right Wt-spinbox" style="min-width: 89px; min-height: 0px; display: block; box-sizing: border-box; position: absolute; width: 122px; margin-left: 0px; left: 126px; top: 0px;" type="text">
Maybe this also apply to WSpinBox objects?
Regards,
Stefan
Files
Updated by Koen Deforche over 9 years ago
- Status changed from New to InProgress
- Assignee set to Benoit Daccache
Updated by Benoit Daccache over 9 years ago
Hi Stefan,
I tried to reproduce the problem without luck.
The WDoubleSpinBox::setReadOnly(true) works well on Chrome and FF and is generating the correct HTML.
Can you give me more information (Browser, testcase , ...) ?
Thank you,
Regards,
Benoit
Updated by Stefan Ruppert over 9 years ago
Hi,
isolating a test case is not so easy. But here are some more constraints from my code:
The WDoubleSpinBox is inside a WDialog
Its per default disabled and enabled and possibly set to readonly depending on the users choice by changing another widget
Hope this helps to reproduce it.
Regards,
Stefan
Updated by Benoit Daccache over 9 years ago
- File 3984.cpp added
Hey Stephan,
Are you using the latest git version ?
I couldn't reproduce it even when I put it into a WDialog.
I've attached the code, could you please try to modify it in order to reproduce the bug ?
Could you also give me more informations on the environment ?
Thank you,
Regards,
Benoit
Updated by Stefan Ruppert over 9 years ago
- File Ticket3984.cpp Ticket3984.cpp added
Hi Benoit,
I slightly changed your example and can reproduce the bug unter linux with firefix v38.
First disable with spinbox and then enable/readonly the spinbox!
Regards,
Stefan
Updated by Benoit Daccache over 9 years ago
- Status changed from InProgress to Resolved
Hey Stefan,
Thank you for your help.
The bug is now fixed.
Regards,
Benoit
Updated by Koen Deforche about 9 years ago
- Status changed from Resolved to Closed
Updated by Koen Deforche about 9 years ago
- Target version changed from 3.3.4 to 3.3.5