Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 33

NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
03/19/14 05:56 PM (10 years ago)

ScratchFeature Landscape

Have the scratch plugin running fine in a portrait only app. However would like to also use in a landscape only app- the erase feature does not work correctly in landscape. Has anyone modified the code to run in landscape? If you incorporate in a landscape app with pictures designed for landscape the issue is that the scratch off seems to be based upon 320w and the location of the erase is scaled and offset down and to the right. Unable to erase top half of image and location error of erase location is magnified as the position moves higher on the screen.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/19/14 09:26 PM (10 years ago)
Just a shot in the dark without having looked at the plugin's code. Is the scratch layer a "frame" that has a particular dimension? Perhaps do a detection of orientation and then set the frame accordingly. One should be able to sniff-out the dimensions of the current screen. Then apply to the frame. -- Niraj
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
03/20/14 06:42 PM (10 years ago)
Will look at that -thanks.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.