Project

General

Profile

Actions

Bug #1373

closed

whte-space in span style

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

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

Actions #2

Updated by Koen Deforche about 11 years ago

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

Updated by Евгений Илюшин about 11 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.

Actions #4

Updated by Koen Deforche about 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF