Project

General

Profile

Actions

Bug #1373

closed
ЕИ KD

whte-space in span style

Bug #1373: whte-space in span style

Added by Евгений Илюшин about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/27/2012
Due date:
% Done:

0%

Estimated time:

Description

Hi.
Tell me please.
I`m a create menu:
Wt::WSubMenuItem *subMenu2 = new Wt::WSubMenuItem(tr("information"),new Wt::WText(tr("information")));
Wt::WMenu *subMenuItems2 = new Wt::WMenu(contents,Wt::Vertical);
mi = subMenuItems2->addItem
(tr("services"), wrapView(&Portal::reports), WMenuItem::PreLoading);

I have a long string in the menu.
Адреса сервисных центров электротавары
How I can to remove the style "white-space" from object ?

!!


Files

Снимок-1.png (377 KB) Снимок-1.png Евгений Илюшин, 07/27/2012 02:00 PM

KD Updated by Koen Deforche almost 14 years ago Actions #1

  • Status changed from New to Feedback
  • Assignee set to Koen Deforche

Hey,

You can only do that by specializing the WMenuItem. However, for release 3.3.0 we plan a number of changes with the integration of twitter's bootstrap framework, which also solves this issue.

Regards,
koen

KD Updated by Koen Deforche over 13 years ago Actions #2

  • Status changed from Feedback to Resolved
  • Target version set to 3.3.0

ЕИ Updated by Евгений Илюшин over 13 years ago Actions #3

Hi.
I solved this problem this way:

((WAnchor*)mi->itemWidget())->setWordWrap(true);

And "style="white-space:nowrap;" has been removed.

Regards,
Eugene Ilushin.

KD Updated by Koen Deforche over 13 years ago Actions #4

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom