Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
BUG in 1.1: FocusPanel and font size
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Konstantin Scheglov  
View profile  
 More options Aug 11 2006, 5:07 pm
From: "Konstantin Scheglov" <Konstantin.Scheg...@gmail.com>
Date: Fri, 11 Aug 2006 21:07:06 -0000
Local: Fri, Aug 11 2006 5:07 pm
Subject: BUG in 1.1: FocusPanel and font size
When I run code below with GWT 1.1, I see very-very small label in
upper left corner of FocusPanel. In 1.0.21 it works fine.

package com.mycompany.project.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.FocusPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class ImageViewer implements EntryPoint {
        public void onModuleLoad() {
                RootPanel rootPanel = RootPanel.get();
                {
                        final FocusPanel focusPanel = new FocusPanel();
                        rootPanel.add(focusPanel, 142, 72);
                        focusPanel.setSize("338px", "253px");
                        {
                                final Label label = new Label();
                                focusPanel.add(label);
                                label.setText("New Label");
                        }
                }
        }


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
j...@google.com  
View profile  
 More options Aug 11 2006, 5:35 pm
From: j...@google.com
Date: Fri, 11 Aug 2006 21:35:45 -0000
Local: Fri, Aug 11 2006 5:35 pm
Subject: Re: BUG in 1.1: FocusPanel and font size
Konstantin,

Congratulations -- you caught one of the more embarassing bugs I've
shipped in recent memory!  It looks like the default implementation of
FocusImpl.createFocusable() has a block-copy bug that sets the
FocusPanel's default font-size to 0.  I believe we managed to miss this
because our samples have font sizes set on the elements added to
FocusPanels, Menus, and Trees, which hides the problem.

Which leads us to a workaround:  set the font size (either in code or
in CSS) of the widget that you add to a FocusPanel, and it will
override the default that it inherits.

joel.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google