Actions
Bug #3410
closedWCheckBox setting CSS "white-space: nowrap"?
Start date:
07/01/2014
Due date:
% Done:
0%
Estimated time:
Description
Hi,
I have a WCheckBox widget with a associated text and I want to suppress word-wrapping of the checkbox and the descriptive text using CSS "white-space: nowrap".
But with current implementation there is no appropriate method and the WAbstractToggleButton implements its own label instead of using WFormWidget::label() attribute.
How can I achive this?
Regards,
Stefan
Updated by Alan Finley over 10 years ago
You can use a workaround:
checkBox->doJavaScript(checkBox->jsRef(), ".style.whiteSpace='nowrap'");
Updated by Koen Deforche about 10 years ago
- Status changed from New to InProgress
- Assignee set to Korneel Dumon
- Target version set to 3.3.4
Add a WCheckBox::setWordWrap() as in WLabel.
Updated by Koen Deforche about 10 years ago
- Assignee changed from Korneel Dumon to Pavel Sopher
Updated by Koen Deforche over 9 years ago
- Assignee changed from Pavel Sopher to Benoit Daccache
Updated by Benoit Daccache over 9 years ago
- Status changed from InProgress to Closed
Actions