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

Dialog.setIconSize ignored

$
0
0
1. SmartClient Version: SNAPSHOT_v10.1d_2014-10-12/LGPL Development Only (built 2014-10-12)
the same problem exists for 4.1p
2. Firefox 24.5.0 on Gentoo linux
3.
4.
5.
Code:

12:18:27.397:INFO:Log:initialized
12:18:27.402:WARN:Log:New Class ID: 'Set' collides with ID of existing object with value 'function Set() {
    [native code]
}'.  Existing object will be replaced.
This conflict would be avoided by disabling ISC Simple Names mode.  See documentation for further information.
12:18:29.542:INFO:Log:isc.Page is loaded


6.
Code:

package pl.com.tech4.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.DOM;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.Dialog;

public class MainEntryPoint implements EntryPoint {
 
    public void onModuleLoad() {

        DOM.getElementById("loadingPicture").removeFromParent();
        layout();
        SC.showConsole();
    }
 
    private void layout() {

        Dialog dialog = new Dialog();
        dialog.setButtons(Dialog.OK);
        dialog.setIcon("[SKINIMG]Dialog/say.png");
        dialog.setIconSize(200); //does not work
        dialog.setMessage("message");
        dialog.show();
    }
}

According to the docs:
Code:


public void setIconSize(int iconSize)
                throws IllegalStateException

Size of the icon to show in this dialog.

Parameters:
    iconSize - Default value is 32

but it looks like this is ignored and defaults to 32px always (see attached pic).
Thanks,
MichalG

Attached Images
File Type: png DialogIconSize.png (5.0 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles