subsurface/qt-mobile
Rick Walsh de46f2b37c QML UI: make profile margin scale proportional to dimensions
The QMLProfile height is specified as ~2/3 (actually 0.66) width in
DiveDetailsView.qml. In order to produce an even margin around the profile,
the scaling factor reduction for height needs to be 3/2 times that for width.

MarginFactor is specified as 0.013 to approximate the margin calculated by
commits ef653b4 and 7e2898d for my Galaxy S6.
MarginFactor	= margin  / width
		= 18 / 1365
		= 0.132

Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-01-04 10:00:44 -08:00
..
qml QML UI: add feature to add current position when editing dive 2016-01-01 17:26:26 -08:00
qmlmanager.cpp QML UI: use better Google maps link 2016-01-01 22:24:05 -08:00
qmlmanager.h QML UI: add feature to add current position when editing dive 2016-01-01 17:26:26 -08:00
qmlprofile.cpp QML UI: make profile margin scale proportional to dimensions 2016-01-04 10:00:44 -08:00
qmlprofile.h QML UI: obtain a reasonable margin from QML 2015-12-29 09:50:47 -08:00