Revision: 4529
Author: [email protected]
Date: Wed Nov 9 02:51:19 2011
Log: Resize problem fixing
http://code.google.com/p/openmeetings/source/detail?r=4529
Modified:
/branches/video-component/WebContent/openmeetings/swf10/video/baseVideoObject.lzx
=======================================
---
/branches/video-component/WebContent/openmeetings/swf10/video/baseVideoObject.lzx
Tue Nov 8 23:02:39 2011
+++
/branches/video-component/WebContent/openmeetings/swf10/video/baseVideoObject.lzx
Wed Nov 9 02:51:19 2011
@@ -89,9 +89,9 @@
var prop1 = [this, "width"];
var prop2 = [this, "height"];
- this.applyConstraintMethod("setItemContraints", prop1);
- this.applyConstraintMethod("setItemContraints", prop2);
- this.setShadow();
+ this.applyConstraintMethod("setItemContraintsWidth", prop1);
+ this.applyConstraintMethod("setItemContraintsHeight", prop2);
+ this.setShadow();
if (this.publicSID == canvas.publicSID) {
this._toolbar._resync._tip.setAttribute("labelid",610);
@@ -164,25 +164,33 @@
</method>
<!-- respect ratio and keep minimum width / height -->
- <method name="setItemContraints" args="w">
+ <method name="setItemContraintsWidth" args="unused">
<![CDATA[
if (!this.respectRatio) {
return;
}
-
- //if ($debug) Debug.write("setItemContraints ",w);
-
- //if ($debug) Debug.write("setItemContraints",w)
+ var h=this.width * this.initH/this.initW;
+ h=((h < this.initH ) ? initH : h);
+
+ if ($debug)
Debug.write("setItemContraintsWidth",this.respectRatio,'orig',this.height,this.width,'new
h',h);
+
+ this.setAttribute("height",h);
+ ]]>
+ </method>
+
+ <method name="setItemContraintsHeight" args="unused">
+ <![CDATA[
+ if (!this.respectRatio) {
+ return;
+ }
var w=this.height * this.initW/this.initH;
w=((w < this.initW ) ? initW : w);
- var h=this.width * this.initH/this.initW;
- h=((h < this.initH ) ? initH : h);
-
+
+ if ($debug)
Debug.write("setItemContraintsHeight",this.respectRatio,'orig',this.height,this.width,'new
w',w);
+
this.setAttribute("width",w);
- this.setAttribute("height",h);
]]>
</method>
-
<method name="updateAVSettingsSymbol" args="rcl">
//FIXME: Set a Symbol wether this Client is Audio(only)/Video(only),
both or Profile Picture
--
You received this message because you are subscribed to the Google Groups
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/openmeetings-dev?hl=en.