~zsombi/ubuntu-ui-toolkit/listitemSelectModeBugs

« back to all changes in this revision

Viewing changes to src/Ubuntu/Components/1.2/TextArea.qml

  • Committer: Zsombor Egri
  • Date: 2015-11-20 16:37:59 UTC
  • mfrom: (1662.2.62 staging)
  • Revision ID: zsombor.egri@canonical.com-20151120163759-8p94jar0o53nbu95
staging sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import QtQuick 2.4
18
18
import Ubuntu.Components 1.2 as Ubuntu
19
19
import Ubuntu.Components.Popups 1.0
20
 
import "mathUtils.js" as MathUtils
21
20
 
22
21
/*!
23
22
    \qmltype TextArea
767
766
                var max = (control.maximumLineCount <= 0) ?
768
767
                            control.lineCount :
769
768
                            Math.min(control.maximumLineCount, control.lineCount);
770
 
                control.height = linesHeight(MathUtils.clamp(control.lineCount, 1, max));
 
769
                control.height = linesHeight(Ubuntu.MathUtils.clamp(control.lineCount, 1, max));
771
770
            }
772
771
        }
773
772
    }