[Vtigercrm-developers] Adjust Vtiger to RTL languages

Adam Heinz amh at metricwise.net
Thu Jul 5 06:52:17 PDT 2012


On Thu, Jul 5, 2012 at 8:31 AM, Rami Addady <rami at active.co.il> wrote:
> Debugging the code has led us to the function findPosX in the file
> include/js/general.js. I could not change it the way we want, as there
> is no offsetRight property in an object. Can you help me with this issue?

If I'm reading this problem correctly, you are trying to find the
right boundary of the object passed to findPosX?  Since the function
finds the left boundary of the object, we just need to add its width,
so maybe this?

-	var curleft = 0;
+	var curleft = obj.offsetWidth;


More information about the vtigercrm-developers mailing list