hello,
There is one issue I found in listbox element and I am not sure if it
is a problem or not.
When there are many items in the listbox and scrollbar is displayed,
you click on one item with mouse and you will see the scrollbar moves
to the top.
I checked the behavior in Window version and it doesn't exhibit the
same behavior.
I then checked the implementation of
ListBoxElement::Impl::SetSelectedItem
void SetSelectedItem(ItemElement *item) {
bool changed = ClearSelection(item);
if (item && !item->IsSelected()) {
item->SetSelected(true);
pending_scroll_ = 2;
changed = true;
}
if (changed)
FireOnChangeEvent();
}
The selected_index_ is not set and therefore when Layout is called the
scrolling position is changed incorrectly.
I then tried by adding
selected_index_ = item->GetIndex(); and it works fine
can you kindly confirm if this is an issue or not? thank you,
--
You received this message because you are subscribed to the Google Groups "google-gadgets-for-linux-user" group.
To post to this group, send email to google-gadgets...@googlegroups.com.
To unsubscribe from this group, send email to google-gadgets-for-l...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-gadgets-for-linux-user?hl=en.