mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
73f72865d8
commit
22a35c9b86
@ -59,7 +59,15 @@ class chartwidget(QWidget):
|
||||
|
||||
xmargin = xmargin + self.scalelinelen
|
||||
|
||||
width = self.width() - xmargin - self.fmetrics.width(x_labels[-1]) // 2
|
||||
width = (
|
||||
self.width()
|
||||
- xmargin
|
||||
- max(
|
||||
self.fmetrics.width(x_labels[-1]) // 2,
|
||||
self.fmetrics.width(self.ytext(self.data[-1][1])) // 2,
|
||||
)
|
||||
)
|
||||
|
||||
height = self.height() - 2 * ymargin
|
||||
|
||||
# 纵坐标
|
||||
|
Loading…
x
Reference in New Issue
Block a user