PDA

View Full Version : [CLOSED] ContentPanel's header text selection



ypfamily
2 Jul 2009, 11:37 AM
Hi,

I believe this is a bug... I am using 2.0-m3:


ContentPanel cp = new ContentPanel();
cp.setHeading("Test");
cp.getHeader().disableTextSelection(false);
RootPanel.get().add(cp);The code above does NOT enable text selection of "Test". Setting the header text in an alternative way doesn't seem to help:

cp.getHeader().setText("Test");Thanks,
Yaakov.

sven
2 Jul 2009, 11:41 AM
Try to inspect the element with firebug. There are css rules assigned taht stop selecting.

ypfamily
2 Jul 2009, 11:54 AM
Just place the code snippet I provided into any EntryPoint's onModuleLoad method and that's all you need to see this behavior (or lack thereof).

Thanks,
Yaakov.

sven
2 Jul 2009, 12:19 PM
Try to inspect the element with firebug. There are css rules assigned taht stop selecting the text (x-unselectable). You have to remove that.