mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
fix scrollbar buttons disappearing when resizing
This commit is contained in:
parent
016ff7d026
commit
358e83bb89
@ -458,15 +458,13 @@ remanage() {
|
|||||||
if (_left_button != (PGButton *)NULL) {
|
if (_left_button != (PGButton *)NULL) {
|
||||||
_left_button->set_frame(-width / 2.0f, width / 2.0f,
|
_left_button->set_frame(-width / 2.0f, width / 2.0f,
|
||||||
-width / 2.0f, width / 2.0f);
|
-width / 2.0f, width / 2.0f);
|
||||||
_left_button->xform(LMatrix4f::translate_mat(center + ((width - length) / 2.0f) * _axis));
|
_left_button->set_transform(TransformState::make_pos(center + ((width - length) / 2.0f) * _axis));
|
||||||
_left_button->clear_transform();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_right_button != (PGButton *)NULL) {
|
if (_right_button != (PGButton *)NULL) {
|
||||||
_right_button->set_frame(-width / 2.0f, width / 2.0f,
|
_right_button->set_frame(-width / 2.0f, width / 2.0f,
|
||||||
-width / 2.0f, width / 2.0f);
|
-width / 2.0f, width / 2.0f);
|
||||||
_right_button->xform(LMatrix4f::translate_mat(center + ((length - width) / 2.0f) * _axis));
|
_right_button->set_transform(TransformState::make_pos(center + ((length - width) / 2.0f) * _axis));
|
||||||
_right_button->clear_transform();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_thumb_button != (PGButton *)NULL) {
|
if (_thumb_button != (PGButton *)NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user