mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Added scrollbar for DropDownList, fixes #52
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1478 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -149,8 +149,8 @@ void GalleryList::RefreshSelection() {
|
||||
}
|
||||
|
||||
void GalleryList::onScroll(wxScrollWinEvent& ev) {
|
||||
wxEventType type = ev.GetEventType();
|
||||
if (type == wxEVT_SCROLLWIN_TOP) {
|
||||
wxEventType type = ev.GetEventType();
|
||||
if (type == wxEVT_SCROLLWIN_TOP) {
|
||||
scrollTo(0);
|
||||
} else if (type == wxEVT_SCROLLWIN_BOTTOM) {
|
||||
scrollTo(INT_MAX);
|
||||
@@ -164,7 +164,7 @@ void GalleryList::onScroll(wxScrollWinEvent& ev) {
|
||||
scrollTo(visibleEnd() - mainSize(item_size));
|
||||
} else {
|
||||
scrollTo(ev.GetPosition());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void GalleryList::onSize(wxSizeEvent& ev) {
|
||||
|
||||
Reference in New Issue
Block a user