-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello, i want to get the position of a component. How to do this? I cant find any method. Reason. I use the Method scrollIntoView like see below. But i want to use the methode like this scrollIntoView(x, y) . I thought i could get x and y from component. But i can t find a solution. please help.
public static void scrollIntoViewOnWrongValueException(final WrongValueException e) {
if (e.getComponent() != null) {
Component component = e.getComponent();
Clients.scrollIntoView(component);
}
}
You can try find position by jquery with Clients.evalJavascript() API and then fire an event to server with position information. Refer to the zkfiddle sample
Asked: 2014-09-03 13:02:54 +0800
Seen: 28 times
Last updated: Sep 04 '14
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status