Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Button label getting clipped when button icon height is set too small

$
0
0
Smartgwt version Version v9.1p_2014-06-03/Enterprise Deployment (2014-06-03)
Browser : IE/FF/Chrome

Code:

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.Button;

public class ButtonLabelTest implements EntryPoint {

    public void onModuleLoad() {
   
        Button button = new Button("Button");
        button.setIcon("../sc/skins/EnterpriseBlue/images/Menu/menu_button.png");
        button.setIconHeight(4);
        button.setIconWidth(7);
        button.setIconOrientation("right");
        button.draw();
    }
}


Attached Images
File Type: png buttonLabelClipped.PNG (3.3 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles