Rank: Member
Groups: Guest
Joined: 3/28/2007(UTC) Posts: 56
|
I want portrait to be the default selected orientation for crop, but it is always on album or landscape, how do I change this?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 6/5/2007(UTC) Posts: 57
|
Hello, Nate! In the current version we have no public property for default orientation of crop rectangle. So, it is hardcoded. But, I can offer you two workarounds: 1. You can change your CropEffect.js in the following way: just replace string Code:
this._orientation = "Album";
with: Code:
this._orientation = "Portrait";
at the definition of local variables. 2. To get rid of changing our code you may add the following code to the end of your PhotoEditorSample.ascx: Code:
Sys.Application.add_load(function(e, t) {
if (t.get_isPartialLoad()) return;
// Get PhotoEditorController instance.
var pe = $find();
if (!pe) return;
// Get instance of CropEffect.
var crop = pe.getEffectIdByType("Aurigma.PhotoEditor.Effects.CropEffect");
if (!crop) return;
crop = $find(crop);
if (!crop) return;
// Call private function which changes orientation.
crop._onOrientationClick();
});
|
Sincerely yours, Sergey Peshekhonov. Aurigma Technical Support Team.
|
|
|
|
Rank: Member
Groups: Guest
Joined: 3/28/2007(UTC) Posts: 56
|
Great, I'll just change CropEffect.js that seems easiest. Thanks for this tip!
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.