Project

General

Profile

Bug #1373

whte-space in span style

Added by Евгений Илюшин about 8 years ago. Updated over 7 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
#1

Updated by Koen Deforche about 8 years ago

  • 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

#2

Updated by Koen Deforche almost 8 years ago

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

Updated by Евгений Илюшин almost 8 years ago

Hi.

I solved this problem this way:

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

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

Regards,

Eugene Ilushin.

#4

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF