Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Value hidden with unfocused Text with Search feature on OS X 10.10 Yosemite
Value hidden with unfocused Text with Search feature on OS X 10.10 Yosemite [message #1586498] Mon, 26 January 2015 22:19
Jim Klo is currently offline Jim KloFriend
Messages: 49
Registered: September 2012
Member
I think this is a new bug, but not quite sure how to describe it.

I have a Text widget that get's created like so:

Text my_text = new Text(parent, SWT.BORDER | SWT.SEARCH | SWT.ICON_CANCEL );
my_text.setText("Some Text");


On OS X 10.10 Yosemite some new behavior seems to exhibit, and not sure if there's a workaround or solution yet.

Essentially what happens is when the widget is out of focus the text value "Some Text" is hidden and doesn't display. As soon as I give the control focus by clicking into it, the text "Some Text" appears.

I've determined that if I remove the SWT.SEARCH and SWT.ICON_CANCEL option, the issue goes away, but then now I'm left to have to add a separate control to clear the field value.

Anyone happen to have a solution or workaround?

[UPDATE] Appears there is a bug filed here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=447981

I've tried changing the text alignment and that "works" but not ideal. I really need a left aligned search box.

Thanks,

JK

[Updated on: Tue, 27 January 2015 18:31]

Report message to a moderator

Previous Topic:[SOLVED] Cannot run JUnit Plug-in Tests on Linux
Next Topic:First row not drawn on SWT Table + OS X 10.10 Yosemite
Goto Forum:
  


Current Time: Fri Apr 19 18:41:47 GMT 2024

Powered by FUDForum. Page generated in 0.03626 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top