From 358e83bb89bc354e302c9bdd0fe9a8b7b6e79e35 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 9 Sep 2010 19:20:04 +0000 Subject: [PATCH] fix scrollbar buttons disappearing when resizing --- panda/src/pgui/pgSliderBar.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/panda/src/pgui/pgSliderBar.cxx b/panda/src/pgui/pgSliderBar.cxx index 32006b153d..02e00e8c32 100755 --- a/panda/src/pgui/pgSliderBar.cxx +++ b/panda/src/pgui/pgSliderBar.cxx @@ -458,15 +458,13 @@ remanage() { if (_left_button != (PGButton *)NULL) { _left_button->set_frame(-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->clear_transform(); + _left_button->set_transform(TransformState::make_pos(center + ((width - length) / 2.0f) * _axis)); } if (_right_button != (PGButton *)NULL) { _right_button->set_frame(-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->clear_transform(); + _right_button->set_transform(TransformState::make_pos(center + ((length - width) / 2.0f) * _axis)); } if (_thumb_button != (PGButton *)NULL) {