mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added maximum offset
This commit is contained in:
parent
3c6130fc65
commit
063da54aa2
1 changed files with 3 additions and 1 deletions
|
|
@ -255,9 +255,11 @@ class TabNameDialog(QtWidgets.QDialog):
|
|||
|
||||
|
||||
class OutputTextWidget(QtWidgets.QTextEdit):
|
||||
v_max_offset = 4
|
||||
|
||||
def vertical_scroll_at_max(self):
|
||||
v_scroll = self.verticalScrollBar()
|
||||
return v_scroll.value() == v_scroll.maximum()
|
||||
return v_scroll.value() > v_scroll.maximum() - self.v_max_offset
|
||||
|
||||
def scroll_to_bottom(self):
|
||||
v_scroll = self.verticalScrollBar()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue