Closed (fixed)
Project:
Scald: Media Management made easy
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Minor
Category:
Task
Assigned:
Reporter:
Created:
31 Mar 2013 at 19:56 UTC
Updated:
12 May 2013 at 09:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
nagy.balint commentedPatch attached, that adds two textfields to the dnd settings to set the ctools modal window's size.
Comment #2
hazaWe should validate for numeric only values there.
Patch that add that attached.
Comment #3
jcisio commentedCTools modal can take values in both 'px' and '%' units.
Comment #4
hazaWell, we tell the user we want pixel.
Should we change that to accept % also, and thus change the validate function or we do we only want to allow pixels ?
Comment #5
jcisio commentedI think we should change the validate function to accept both % and pixel (and check both width/have use the same unit). In case the size is in '%', we need to change type => 'fixed' to type => 'scale', too.
Comment #6
nagy.balint commentedI extended the patch.
Now if number is between 0 and 1 (like 0.5, 0.7 etc) then it will assume that its a percentage value (as any pixel value below like 200 will not work anyways), and if the number is above 1 then it assumes it is a pixel value.
It will also make sure negative numbers cannot be entered. Because of the percentage value, i convert the input to (float), so it is good for both cases.
Comment #7
jcisio commentedThanks. Committed #6 with a spelling fix.