]> git.tdb.fi Git - libs/gltk.git/commit
Make sure Entry::first_row stays consistent
authorMikko Rasa <tdb@tdb.fi>
Mon, 16 Sep 2019 17:25:30 +0000 (20:25 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 16 Sep 2019 17:25:30 +0000 (20:25 +0300)
commitb600936dca600693729eb800b6952070f204a63f
treec02c3045d72d0ca2573d2c5fccd97cf435d916a7
parent474578fd04355c3247e8f9f6383d17e37c2c3015
Make sure Entry::first_row stays consistent

Shrinking and then enlarging an Entry caused first_row to first be set to
the edit position, but would never be reset to zero due to the check in
slider_value_changed.  Yet the visual result was correct thanks to Text
clamping first_row independently.
source/entry.cpp