@ -91,7 +91,11 @@ Rectangle {
differX = curGlobalX - initGlobalX ;
differX = curGlobalX - initGlobalX ;
}
}
var percentX = differX / initWidth ;
/ / ! I n n o r m a l s e t t i n g s m o d e f o r h o r i z o n t a l V i e w w h e n d r a g g i n g t h e c o r n e r t h e l e n g t h m u s t b e i n c r e a s e d t w o t i m e s
/ / ! i n o r d e r t o b e i n t h e e x a c t p o s i t i o n w h e n f i n i s h e d
var percentXMultiplier = ( ! dialog . advancedLevel && plasmoid . formFactor === PlasmaCore . Types . Horizontal ? 2 : 1 ) ;
var percentX = percentXMultiplier * ( differX / initWidth ) ;
var newScaleWidth = Math . max ( 0.35 , initScaleWidth + ( percentX * initScaleWidth ) ) . toFixed ( 3 ) ;
var newScaleWidth = Math . max ( 0.35 , initScaleWidth + ( percentX * initScaleWidth ) ) . toFixed ( 3 ) ;
var newScaleHeight = dialog . userScaleHeight ;
var newScaleHeight = dialog . userScaleHeight ;
@ -109,7 +113,8 @@ Rectangle {
differY = initGlobalY - curGlobalY ;
differY = initGlobalY - curGlobalY ;
}
}
var percentY = differY / initHeight ;
var percentYMultiplier = ( ! dialog . advancedLevel && plasmoid . formFactor === PlasmaCore . Types . Vertical ? 2 : 1 ) ;
var percentY = percentYMultiplier * ( differY / initHeight ) ;
newScaleHeight = Math . max ( 0.5 , initScaleHeight + ( percentY * initScaleHeight ) ) . toFixed ( 3 ) ;
newScaleHeight = Math . max ( 0.5 , initScaleHeight + ( percentY * initScaleHeight ) ) . toFixed ( 3 ) ;
}
}