RAY
RAY

Reputation: 7090

Capture Font Resize Event in GWT

In GWT, Is there a font resize event that I can listen to to capture events when the user changes the size of the font by Ctrl-Mouse Scroll/view -> Zoom?

Googled, and looked in StackOverflow. Found nothing. Apologies if it's been asked and I missed it.

Thanks.

Upvotes: 2

Views: 171

Answers (1)

Jama A.
Jama A.

Reputation: 16079

Try using this code, it handles Control +/- and mouse scroll:

 Window.addResizeHandler(new ResizeHandler() {
            public void onResize(ResizeEvent event) {
                  Window.alert("Resized");
            }
        });

Upvotes: 2

Related Questions