enthought / enthought/traitsui

ENH: Make the behavior of increase_range and decrease_range methods of LargeRangeEditor more userfriendly.

Open
#1,777 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Currently the increase/decrease_range methods of LargeRangeEditor will increase/decrease the current slider range (cur_low, cur_high) by a factor of 10,
and set the new value of the trait to min(max(cur_low, value), value, cur_high). This means that if you push the buttons to increase the range once and then immediately decrease the range once the value of the trait is not the same value as when you started.
This is unexpected. I would expect the value to be same as when you started (given that the value did not exceed the boundaries low and high). If the increase/decrease method also increased/decreased the trait value of a factor 10, it would solve the problem and make the behaviour more user friendly.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.