Anyway, here's the screenshot of the misbehaving TextButton:
Can you share a standalone test case (something that implements EntryPoint and has no other dependencies within your project) that can reproduce this issue? Are you seeing this on http://sencha.com/examples/ ?
Thanks for your reply. I'll see what I can do about this stand-alone testcase. In the meantime, it might be interesting for you to know that this issue seems to appear primarily inside a Portlet. Our application works a lot with them (using UiBinder). For example, we also have a login screen with a "Login" button and that one is rendered correctly....
So it might not be the button itself but some containing widget. An example XML of our portlet UiBinder code is provided below.
Thanks for your time. I hope I can give you more information soon.
Your example is missing the com.arcus.pba.client.shared.widget.DefaultListWidget, as well as the basic wiring needs for the ComboBoxes. Deleting these, I can run the example, and see the issue.
Another thing I deleted: FramedPanel, without an header or border. Without those things, it is just a placeholder, and would be better to be removed to create less objects.
The bug seems to be coming from the HBoxLayoutContainers you are adding - there may be a bug here, I'll see about investigating further. That said, these containers are only each holding a single child - why add them at all? Removing those containers causes the issue to go away.
One more thing I wanted to note: Portlet is a subclass of ContentPanel, which has explicit support for buttons at the bottom of the panel, which appears to be the effect you are trying to achieve. If you add the buttons using this instead of a HBox at the bottom, it is nearly what you started with. To customize the position of these buttons, buttonAlign="START" or buttonAlign="CENTER" can be used, or the default of buttonAlign="END".
Here's the uibinder xml I ended up with, with the thoughts above bolded:
Thanks very much for your help. Your suggestions have indeed solved the problem. I'm no longer using the HBoxLayoutContainer. Whenever I have multiple buttons inside the <client:button> block, I use a FlowLayoutContainer.
That's one option, and I apologize if I wasn't sufficiently clear - Otherwise, you can add several buttons, each in its own <client:button> tag. This will give the ContentPanel details about how many buttons there are, so it knows how to overflow them if needed. Check out http://www.sencha.com/examples/#Exam...%28uibinder%29 for an example of doing this.