8cad7aa5c690a61371257ef64fea74ff5d93e1b5,Orange/widgets/visualize/owboxplot.py,Label,paint,#Label#Any#Any#Any#,1047

Before Change


            if self.__max_width is None or self.boundingRect().width() < self.__max_width:
                return

            if self.__max_width < self.MIN_LABEL_WIDTH:
                // hide text for narrow labels
                self.__draw_white_rect(painter, option.rect)
            else:
                // hide text extending over the boundary
                r = QRect(option.rect)
                r.setX(r.x() + self.__max_width - self.RIGHT_PADDING)
                self.__draw_white_rect(painter, r)

        def __draw_white_rect(self, painter, rect):
            painter.save()
            painter.setBrush(Qt.white)
            painter.setPen(Qt.white)

After Change


            to fit into the allowed region
            
            if self.__max_width is None:
                width = option.rect.width()
            else:
                width = self.__max_width

            if width < self.MIN_LABEL_WIDTH:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: biolab/orange3
Commit Name: 8cad7aa5c690a61371257ef64fea74ff5d93e1b5
Time: 2018-04-20
Author: anze.staric@gmail.com
File Name: Orange/widgets/visualize/owboxplot.py
Class Name: Label
Method Name: paint


Project Name: tzutalin/labelImg
Commit Name: 544cfb9e3c050ef9333286f8d6cd75117605b890
Time: 2020-09-12
Author: 4982550+chrisrapson@users.noreply.github.com
File Name: libs/labelDialog.py
Class Name: LabelDialog
Method Name: popUp


Project Name: matplotlib/matplotlib
Commit Name: 252f4135799027f9ae887e8fd87e3af906187a22
Time: 2018-07-16
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_qt5agg.py
Class Name: FigureCanvasQTAgg
Method Name: paintEvent


Project Name: biolab/orange3
Commit Name: 450e8c7a942288acd301a9b7059e977b1019cfa3
Time: 2016-10-14
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/classify/owclassificationtreegraph.py
Class Name: TreeNode
Method Name: paint


Project Name: HyperGAN/HyperGAN
Commit Name: a1333e84dfd6eb16922b52663060c328073039b2
Time: 2017-06-13
Author: mikkel@255bits.com
File Name: hypergan/generators/resize_conv_generator.py
Class Name: ResizeConvGenerator
Method Name: build