Project

General

Profile

Bug #3410

WCheckBox setting CSS "white-space: nowrap"?

Added by Stefan Ruppert almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
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

#1

Updated by Alan Finley almost 8 years ago

You can use a workaround:

checkBox->doJavaScript(checkBox->jsRef(), ".style.whiteSpace='nowrap'");
#2

Updated by Koen Deforche over 7 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.

#3

Updated by Koen Deforche over 7 years ago

  • Assignee changed from Korneel Dumon to Pavel Sopher
#4

Updated by Koen Deforche over 7 years ago

  • Assignee changed from Pavel Sopher to Benoit Daccache
#5

Updated by Benoit Daccache over 7 years ago

  • Status changed from InProgress to Closed

Also available in: Atom PDF