##// END OF EJS Templates
Bugfix: chart scrolling effect on OSX
Tero Ahola -
r665:39ddc1d3b915
parent child
Show More
@@ -64,7 +64,9 QChartView::~QChartView()
64 64 */
65 65 void QChartView::resizeEvent(QResizeEvent *event)
66 66 {
67 m_scene->setSceneRect(0,0,size().width(),size().height());
67 // If the scene rect is the size of the view, you will get scrolling effect at least on OSX;
68 // i.e. you are able to move the chart inside the view a couple of pixels by mouse flicking
69 m_scene->setSceneRect(0, 0, size().width() - 2, size().height() - 2);
68 70 m_chart->resize(size());
69 71 QWidget::resizeEvent(event);
70 72 }
General Comments 0
You need to be logged in to leave comments. Login now