Problem occures in datepicker (date time calender) , which results in expansion in form.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem occures in datepicker (date time calender) , which results in expansion in form.

soumya jyoti guru
Hello all ,
 I am facing a problem , when I click on any date time calender , It expands
the form or ftl, which should not has to be the case , it should come over
the form or ftl not inside , I also checked this on demo server and found
the same behaviour. I also checked some css file related to the calender
there are some line of code are commented , I dont understand the purpose of
this. How I can fix this for my customized code.

Thanks

Regards
Soumya
Reply | Threaded
Open this post in threaded view
|

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

Jacques Le Roux
Administrator
Please provide an URL from the demo trunk showing this error

Jacques

From: "soumya jyoti guru" <[hidden email]>

> Hello all ,
> I am facing a problem , when I click on any date time calender , It expands
> the form or ftl, which should not has to be the case , it should come over
> the form or ftl not inside , I also checked this on demo server and found
> the same behaviour. I also checked some css file related to the calender
> there are some line of code are commented , I dont understand the purpose of
> this. How I can fix this for my customized code.
>
> Thanks
>
> Regards
> Soumya
>

Reply | Threaded
Open this post in threaded view
|

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

james_sg
In reply to this post by soumya jyoti guru
Hi Soumya,

I think this date picker behavior is to accomodate the new layered form popup, but I could be wrong about this.

Regards,
James

soumya jyoti guru wrote
Hello all ,
 I am facing a problem , when I click on any date time calender , It expands
the form or ftl, which should not has to be the case , it should come over
the form or ftl not inside , I also checked this on demo server and found
the same behaviour. I also checked some css file related to the calender
there are some line of code are commented , I dont understand the purpose of
this. How I can fix this for my customized code.

Thanks

Regards
Soumya
Reply | Threaded
Open this post in threaded view
|

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

soumya jyoti guru
In reply to this post by Jacques Le Roux
 Thank you  Jacques for reminding me about the URL.The URL is
https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001
with regards
Soumya

On Wed, May 26, 2010 at 8:00 PM, Jacques Le Roux <
[hidden email]> wrote:

> Please provide an URL from the demo trunk showing this error
>
> Jacques
>
> From: "soumya jyoti guru" <[hidden email]>
>
>  Hello all ,
>> I am facing a problem , when I click on any date time calender , It
>> expands
>> the form or ftl, which should not has to be the case , it should come over
>> the form or ftl not inside , I also checked this on demo server and found
>> the same behaviour. I also checked some css file related to the calender
>> there are some line of code are commented , I dont understand the purpose
>> of
>> this. How I can fix this for my customized code.
>>
>> Thanks
>>
>> Regards
>> Soumya
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

Jacques Le Roux
Administrator
Soumya,

Thanks for the link, I can't reproduce with the default Theme (Tomahawk) using the 4 1st calendars on this page.
Did you use another theme?

Jacques

From: "soumya jyoti guru" <[hidden email]>

> Thank you  Jacques for reminding me about the URL.The URL is
> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001
> with regards
> Soumya
>
> On Wed, May 26, 2010 at 8:00 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> Please provide an URL from the demo trunk showing this error
>>
>> Jacques
>>
>> From: "soumya jyoti guru" <[hidden email]>
>>
>>  Hello all ,
>>> I am facing a problem , when I click on any date time calender , It
>>> expands
>>> the form or ftl, which should not has to be the case , it should come over
>>> the form or ftl not inside , I also checked this on demo server and found
>>> the same behaviour. I also checked some css file related to the calender
>>> there are some line of code are commented , I dont understand the purpose
>>> of
>>> this. How I can fix this for my customized code.
>>>
>>> Thanks
>>>
>>> Regards
>>> Soumya
>>>
>>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

soumya jyoti guru
Thanks jacques,
Following are the steps through which you can understand the problem that I am facing ,
When I click on the date picker (which is a calender) it displays itself inside the form and pushing the labels below(for reference I am attaching the screenshot),which should not be the expected case. The calender should come overlay instead of inside the form and should not shift the elements below for taking its position in the form. Ideally it should come over the screen as the, for example ,the lookups come. and I am using the bizzare theme , for the following url "https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001 ".

Following are the changes that I made for making it work as I expected. So I am interested to know the why this changes were commented  and why this made as a relative layered output.

I made changes in the calender_date_select.js file as below

Line no 123:(originally)
 /* mod for OFBiz layered lookups
    var left_px = e_left.toString() + "px", top_px = (above ? (e_top - c_height ) : ( e_bottom )).toString() + "px";*/

Change made by me is:
/* mod for OFBiz layered lookups*/
   var left_px = e_left.toString() + "px", top_px = (above ? (e_top - c_height ) : ( e_bottom )).toString() + "px";


Line no 128:(originally)
/* mod for OFBiz layered lookups
    this.calendar_div.style.left = left_px;  this.calendar_div.style.top = top_px;*/
    this.calendar_div.style.left = "0px";  this.calendar_div.style.top = top_px;

Changes made by me is:
/* mod for OFBiz layered lookups*/
   this.calendar_div.style.left = left_px;  this.calendar_div.style.top = top_px;
    /*this.calendar_div.style.left = "0px";  this.calendar_div.style.top = top_px;*/


Line no 147:(Origianlly)
 /* mod for OFBiz layered lookups       var style = { position:"absolute", visibility: "hidden", left:0, top:0 }*/
      var style = { position:"relative", visibility: "hidden", left:0, top:0 }   

change made by me is:
/* mod for OFBiz layered lookups*/
      var style = { position:"absolute", visibility: "hidden", left:0, top:0 }
   /*  var style = { position:"relative", visibility: "hidden", left:0, top:0 }*/
                                 
                               
Regards
Soumya


On Thu, May 27, 2010 at 2:34 PM, Jacques Le Roux <[hidden email]> wrote:
Soumya,

Thanks for the link, I can't reproduce with the default Theme (Tomahawk) using the 4 1st calendars on this page. Did you use another theme?


Jacques

From: "soumya jyoti guru" <[hidden email]>
Thank you  Jacques for reminding me about the URL.The URL is
https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001
with regards
Soumya

On Wed, May 26, 2010 at 8:00 PM, Jacques Le Roux <
[hidden email]> wrote:

Please provide an URL from the demo trunk showing this error

Jacques

From: "soumya jyoti guru" <[hidden email]>

 Hello all ,
I am facing a problem , when I click on any date time calender , It
expands
the form or ftl, which should not has to be the case , it should come over
the form or ftl not inside , I also checked this on demo server and found
the same behaviour. I also checked some css file related to the calender
there are some line of code are commented , I dont understand the purpose
of
this. How I can fix this for my customized code.

Thanks

Regards
Soumya






Reply | Threaded
Open this post in threaded view
|

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

Jacques Le Roux
Administrator
Thanks Soumya,

I reopened https://issues.apache.org/jira/browse/OFBIZ-3667

Jacques
PS: I previously sent another msg but it seems,as it was HTML, it did not pass through

From: soumya jyoti guru
Thanks jacques,
Following are the steps through which you can understand the problem that I am facing ,
When I click on the date picker (which is a calender) it displays itself inside the form and pushing the labels below(for reference
I am attaching the screenshot),which should not be the expected case. The calender should come overlay instead of inside the form
and should not shift the elements below for taking its position in the form. Ideally it should come over the screen as the, for
example ,the lookups come. and I am using the bizzare theme , for the following url
"https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001 ".

Following are the changes that I made for making it work as I expected. So I am interested to know the why this changes were
commented  and why this made as a relative layered output.

I made changes in the calender_date_select.js file as below

Line no 123:(originally)
 /* mod for OFBiz layered lookups
    var left_px = e_left.toString() + "px", top_px = (above ? (e_top - c_height ) : ( e_bottom )).toString() + "px";*/

Change made by me is:
/* mod for OFBiz layered lookups*/
   var left_px = e_left.toString() + "px", top_px = (above ? (e_top - c_height ) : ( e_bottom )).toString() + "px";


Line no 128:(originally)
/* mod for OFBiz layered lookups
    this.calendar_div.style.left = left_px;  this.calendar_div.style.top = top_px;*/
    this.calendar_div.style.left = "0px";  this.calendar_div.style.top = top_px;

Changes made by me is:
/* mod for OFBiz layered lookups*/
   this.calendar_div.style.left = left_px;  this.calendar_div.style.top = top_px;
    /*this.calendar_div.style.left = "0px";  this.calendar_div.style.top = top_px;*/


Line no 147:(Origianlly)
 /* mod for OFBiz layered lookups       var style = { position:"absolute", visibility: "hidden", left:0, top:0 }*/
      var style = { position:"relative", visibility: "hidden", left:0, top:0 }

change made by me is:
/* mod for OFBiz layered lookups*/
      var style = { position:"absolute", visibility: "hidden", left:0, top:0 }
   /*  var style = { position:"relative", visibility: "hidden", left:0, top:0 }*/


Regards
Soumya



On Thu, May 27, 2010 at 2:34 PM, Jacques Le Roux <[hidden email]> wrote:

Soumya,

Thanks for the link, I can't reproduce with the default Theme (Tomahawk) using the 4 1st calendars on this page. Did you use another
theme?


Jacques

From: "soumya jyoti guru" <[hidden email]>

Thank you  Jacques for reminding me about the URL.The URL is
https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001
with regards
Soumya

On Wed, May 26, 2010 at 8:00 PM, Jacques Le Roux <
[hidden email]> wrote:


Please provide an URL from the demo trunk showing this error

Jacques

From: "soumya jyoti guru" <[hidden email]>

 Hello all ,

I am facing a problem , when I click on any date time calender , It
expands
the form or ftl, which should not has to be the case , it should come over
the form or ftl not inside , I also checked this on demo server and found
the same behaviour. I also checked some css file related to the calender
there are some line of code are commented , I dont understand the purpose
of
this. How I can fix this for my customized code.

Thanks

Regards
Soumya


Reply | Threaded
Open this post in threaded view
|

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

Jacques Le Roux
Administrator
That was the message I 1stly sent (I guess it's lost in some spam area)

Thanks Soumya,

There is indeed an issue there. But I'm afraid your changes will introduce another issue in the layered lookups when using a
calendar. I re-opened the related Jira issue and we will try to find a good solution for both cases.
See https://issues.apache.org/jira/browse/OFBIZ-3667

Jacquees


From: "Jacques Le Roux" <[hidden email]>

> Thanks Soumya,
>
> I reopened https://issues.apache.org/jira/browse/OFBIZ-3667
>
> Jacques
> PS: I previously sent another msg but it seems,as it was HTML, it did not pass through
>
> From: soumya jyoti guru
> Thanks jacques,
> Following are the steps through which you can understand the problem that I am facing ,
> When I click on the date picker (which is a calender) it displays itself inside the form and pushing the labels below(for
> reference
> I am attaching the screenshot),which should not be the expected case. The calender should come overlay instead of inside the form
> and should not shift the elements below for taking its position in the form. Ideally it should come over the screen as the, for
> example ,the lookups come. and I am using the bizzare theme , for the following url
> "https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001 ".
>
> Following are the changes that I made for making it work as I expected. So I am interested to know the why this changes were
> commented  and why this made as a relative layered output.
>
> I made changes in the calender_date_select.js file as below
>
> Line no 123:(originally)
> /* mod for OFBiz layered lookups
>    var left_px = e_left.toString() + "px", top_px = (above ? (e_top - c_height ) : ( e_bottom )).toString() + "px";*/
>
> Change made by me is:
> /* mod for OFBiz layered lookups*/
>   var left_px = e_left.toString() + "px", top_px = (above ? (e_top - c_height ) : ( e_bottom )).toString() + "px";
>
>
> Line no 128:(originally)
> /* mod for OFBiz layered lookups
>    this.calendar_div.style.left = left_px;  this.calendar_div.style.top = top_px;*/
>    this.calendar_div.style.left = "0px";  this.calendar_div.style.top = top_px;
>
> Changes made by me is:
> /* mod for OFBiz layered lookups*/
>   this.calendar_div.style.left = left_px;  this.calendar_div.style.top = top_px;
>    /*this.calendar_div.style.left = "0px";  this.calendar_div.style.top = top_px;*/
>
>
> Line no 147:(Origianlly)
> /* mod for OFBiz layered lookups       var style = { position:"absolute", visibility: "hidden", left:0, top:0 }*/
>      var style = { position:"relative", visibility: "hidden", left:0, top:0 }
>
> change made by me is:
> /* mod for OFBiz layered lookups*/
>      var style = { position:"absolute", visibility: "hidden", left:0, top:0 }
>   /*  var style = { position:"relative", visibility: "hidden", left:0, top:0 }*/
>
>
> Regards
> Soumya
>
>
>
> On Thu, May 27, 2010 at 2:34 PM, Jacques Le Roux <[hidden email]> wrote:
>
> Soumya,
>
> Thanks for the link, I can't reproduce with the default Theme (Tomahawk) using the 4 1st calendars on this page. Did you use
> another
> theme?
>
>
> Jacques
>
> From: "soumya jyoti guru" <[hidden email]>
>
> Thank you  Jacques for reminding me about the URL.The URL is
> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001
> with regards
> Soumya
>
> On Wed, May 26, 2010 at 8:00 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>
> Please provide an URL from the demo trunk showing this error
>
> Jacques
>
> From: "soumya jyoti guru" <[hidden email]>
>
> Hello all ,
>
> I am facing a problem , when I click on any date time calender , It
> expands
> the form or ftl, which should not has to be the case , it should come over
> the form or ftl not inside , I also checked this on demo server and found
> the same behaviour. I also checked some css file related to the calender
> there are some line of code are commented , I dont understand the purpose
> of
> this. How I can fix this for my customized code.
>
> Thanks
>
> Regards
> Soumya
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

Jacques Le Roux
Administrator
Atul fixed it, commited  in trunk at r949174 , R10.04 at r949175

Jacques

From: "Jacques Le Roux" <[hidden email]>

> That was the message I 1stly sent (I guess it's lost in some spam area)
>
> Thanks Soumya,
>
> There is indeed an issue there. But I'm afraid your changes will introduce another issue in the layered lookups when using a
> calendar. I re-opened the related Jira issue and we will try to find a good solution for both cases.
> See https://issues.apache.org/jira/browse/OFBIZ-3667
>
> Jacquees
>
>
> From: "Jacques Le Roux" <[hidden email]>
>> Thanks Soumya,
>>
>> I reopened https://issues.apache.org/jira/browse/OFBIZ-3667
>>
>> Jacques
>> PS: I previously sent another msg but it seems,as it was HTML, it did not pass through
>>
>> From: soumya jyoti guru
>> Thanks jacques,
>> Following are the steps through which you can understand the problem that I am facing ,
>> When I click on the date picker (which is a calender) it displays itself inside the form and pushing the labels below(for
>> reference
>> I am attaching the screenshot),which should not be the expected case. The calender should come overlay instead of inside the form
>> and should not shift the elements below for taking its position in the form. Ideally it should come over the screen as the, for
>> example ,the lookups come. and I am using the bizzare theme , for the following url
>> "https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001 ".
>>
>> Following are the changes that I made for making it work as I expected. So I am interested to know the why this changes were
>> commented  and why this made as a relative layered output.
>>
>> I made changes in the calender_date_select.js file as below
>>
>> Line no 123:(originally)
>> /* mod for OFBiz layered lookups
>>    var left_px = e_left.toString() + "px", top_px = (above ? (e_top - c_height ) : ( e_bottom )).toString() + "px";*/
>>
>> Change made by me is:
>> /* mod for OFBiz layered lookups*/
>>   var left_px = e_left.toString() + "px", top_px = (above ? (e_top - c_height ) : ( e_bottom )).toString() + "px";
>>
>>
>> Line no 128:(originally)
>> /* mod for OFBiz layered lookups
>>    this.calendar_div.style.left = left_px;  this.calendar_div.style.top = top_px;*/
>>    this.calendar_div.style.left = "0px";  this.calendar_div.style.top = top_px;
>>
>> Changes made by me is:
>> /* mod for OFBiz layered lookups*/
>>   this.calendar_div.style.left = left_px;  this.calendar_div.style.top = top_px;
>>    /*this.calendar_div.style.left = "0px";  this.calendar_div.style.top = top_px;*/
>>
>>
>> Line no 147:(Origianlly)
>> /* mod for OFBiz layered lookups       var style = { position:"absolute", visibility: "hidden", left:0, top:0 }*/
>>      var style = { position:"relative", visibility: "hidden", left:0, top:0 }
>>
>> change made by me is:
>> /* mod for OFBiz layered lookups*/
>>      var style = { position:"absolute", visibility: "hidden", left:0, top:0 }
>>   /*  var style = { position:"relative", visibility: "hidden", left:0, top:0 }*/
>>
>>
>> Regards
>> Soumya
>>
>>
>>
>> On Thu, May 27, 2010 at 2:34 PM, Jacques Le Roux <[hidden email]> wrote:
>>
>> Soumya,
>>
>> Thanks for the link, I can't reproduce with the default Theme (Tomahawk) using the 4 1st calendars on this page. Did you use
>> another
>> theme?
>>
>>
>> Jacques
>>
>> From: "soumya jyoti guru" <[hidden email]>
>>
>> Thank you  Jacques for reminding me about the URL.The URL is
>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001
>> with regards
>> Soumya
>>
>> On Wed, May 26, 2010 at 8:00 PM, Jacques Le Roux <
>> [hidden email]> wrote:
>>
>>
>> Please provide an URL from the demo trunk showing this error
>>
>> Jacques
>>
>> From: "soumya jyoti guru" <[hidden email]>
>>
>> Hello all ,
>>
>> I am facing a problem , when I click on any date time calender , It
>> expands
>> the form or ftl, which should not has to be the case , it should come over
>> the form or ftl not inside , I also checked this on demo server and found
>> the same behaviour. I also checked some css file related to the calender
>> there are some line of code are commented , I dont understand the purpose
>> of
>> this. How I can fix this for my customized code.
>>
>> Thanks
>>
>> Regards
>> Soumya
>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

soumya jyoti guru
Thank you Jacques for looking into the matter seriously and fixing the
problem.
Soumya



On Fri, May 28, 2010 at 7:04 PM, Jacques Le Roux <
[hidden email]> wrote:

> Atul fixed it, commited  in trunk at r949174 , R10.04 at r949175
>
> Jacques
>
>
> From: "Jacques Le Roux" <[hidden email]>
>
>> That was the message I 1stly sent (I guess it's lost in some spam area)
>>
>> Thanks Soumya,
>>
>> There is indeed an issue there. But I'm afraid your changes will introduce
>> another issue in the layered lookups when using a calendar. I re-opened the
>> related Jira issue and we will try to find a good solution for both cases.
>> See https://issues.apache.org/jira/browse/OFBIZ-3667
>>
>> Jacquees
>>
>>
>> From: "Jacques Le Roux" <[hidden email]>
>>
>>> Thanks Soumya,
>>>
>>> I reopened https://issues.apache.org/jira/browse/OFBIZ-3667
>>>
>>> Jacques
>>> PS: I previously sent another msg but it seems,as it was HTML, it did not
>>> pass through
>>>
>>> From: soumya jyoti guru
>>> Thanks jacques,
>>> Following are the steps through which you can understand the problem that
>>> I am facing ,
>>> When I click on the date picker (which is a calender) it displays itself
>>> inside the form and pushing the labels below(for reference
>>> I am attaching the screenshot),which should not be the expected case. The
>>> calender should come overlay instead of inside the form
>>> and should not shift the elements below for taking its position in the
>>> form. Ideally it should come over the screen as the, for
>>> example ,the lookups come. and I am using the bizzare theme , for the
>>> following url
>>> "
>>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001".
>>>
>>> Following are the changes that I made for making it work as I expected.
>>> So I am interested to know the why this changes were
>>> commented  and why this made as a relative layered output.
>>>
>>> I made changes in the calender_date_select.js file as below
>>>
>>> Line no 123:(originally)
>>> /* mod for OFBiz layered lookups
>>>   var left_px = e_left.toString() + "px", top_px = (above ? (e_top -
>>> c_height ) : ( e_bottom )).toString() + "px";*/
>>>
>>> Change made by me is:
>>> /* mod for OFBiz layered lookups*/
>>>  var left_px = e_left.toString() + "px", top_px = (above ? (e_top -
>>> c_height ) : ( e_bottom )).toString() + "px";
>>>
>>>
>>> Line no 128:(originally)
>>> /* mod for OFBiz layered lookups
>>>   this.calendar_div.style.left = left_px;  this.calendar_div.style.top =
>>> top_px;*/
>>>   this.calendar_div.style.left = "0px";  this.calendar_div.style.top =
>>> top_px;
>>>
>>> Changes made by me is:
>>> /* mod for OFBiz layered lookups*/
>>>  this.calendar_div.style.left = left_px;  this.calendar_div.style.top =
>>> top_px;
>>>   /*this.calendar_div.style.left = "0px";  this.calendar_div.style.top =
>>> top_px;*/
>>>
>>>
>>> Line no 147:(Origianlly)
>>> /* mod for OFBiz layered lookups       var style = { position:"absolute",
>>> visibility: "hidden", left:0, top:0 }*/
>>>     var style = { position:"relative", visibility: "hidden", left:0,
>>> top:0 }
>>>
>>> change made by me is:
>>> /* mod for OFBiz layered lookups*/
>>>     var style = { position:"absolute", visibility: "hidden", left:0,
>>> top:0 }
>>>  /*  var style = { position:"relative", visibility: "hidden", left:0,
>>> top:0 }*/
>>>
>>>
>>> Regards
>>> Soumya
>>>
>>>
>>>
>>> On Thu, May 27, 2010 at 2:34 PM, Jacques Le Roux <
>>> [hidden email]> wrote:
>>>
>>> Soumya,
>>>
>>> Thanks for the link, I can't reproduce with the default Theme (Tomahawk)
>>> using the 4 1st calendars on this page. Did you use another
>>> theme?
>>>
>>>
>>> Jacques
>>>
>>> From: "soumya jyoti guru" <[hidden email]>
>>>
>>> Thank you  Jacques for reminding me about the URL.The URL is
>>>
>>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001
>>> with regards
>>> Soumya
>>>
>>> On Wed, May 26, 2010 at 8:00 PM, Jacques Le Roux <
>>> [hidden email]> wrote:
>>>
>>>
>>> Please provide an URL from the demo trunk showing this error
>>>
>>> Jacques
>>>
>>> From: "soumya jyoti guru" <[hidden email]>
>>>
>>> Hello all ,
>>>
>>> I am facing a problem , when I click on any date time calender , It
>>> expands
>>> the form or ftl, which should not has to be the case , it should come
>>> over
>>> the form or ftl not inside , I also checked this on demo server and found
>>> the same behaviour. I also checked some css file related to the calender
>>> there are some line of code are commented , I dont understand the purpose
>>> of
>>> this. How I can fix this for my customized code.
>>>
>>> Thanks
>>>
>>> Regards
>>> Soumya
>>>
>>>
>>>
>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

Jacques Le Roux
Administrator
Atul fixed it, I just reviewed, tested/checked and committed ;o)

Jacques

From: "soumya jyoti guru" <[hidden email]>

> Thank you Jacques for looking into the matter seriously and fixing the
> problem.
> Soumya
>
>
>
> On Fri, May 28, 2010 at 7:04 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> Atul fixed it, commited  in trunk at r949174 , R10.04 at r949175
>>
>> Jacques
>>
>>
>> From: "Jacques Le Roux" <[hidden email]>
>>
>>> That was the message I 1stly sent (I guess it's lost in some spam area)
>>>
>>> Thanks Soumya,
>>>
>>> There is indeed an issue there. But I'm afraid your changes will introduce
>>> another issue in the layered lookups when using a calendar. I re-opened the
>>> related Jira issue and we will try to find a good solution for both cases.
>>> See https://issues.apache.org/jira/browse/OFBIZ-3667
>>>
>>> Jacquees
>>>
>>>
>>> From: "Jacques Le Roux" <[hidden email]>
>>>
>>>> Thanks Soumya,
>>>>
>>>> I reopened https://issues.apache.org/jira/browse/OFBIZ-3667
>>>>
>>>> Jacques
>>>> PS: I previously sent another msg but it seems,as it was HTML, it did not
>>>> pass through
>>>>
>>>> From: soumya jyoti guru
>>>> Thanks jacques,
>>>> Following are the steps through which you can understand the problem that
>>>> I am facing ,
>>>> When I click on the date picker (which is a calender) it displays itself
>>>> inside the form and pushing the labels below(for reference
>>>> I am attaching the screenshot),which should not be the expected case. The
>>>> calender should come overlay instead of inside the form
>>>> and should not shift the elements below for taking its position in the
>>>> form. Ideally it should come over the screen as the, for
>>>> example ,the lookups come. and I am using the bizzare theme , for the
>>>> following url
>>>> "
>>>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001".
>>>>
>>>> Following are the changes that I made for making it work as I expected.
>>>> So I am interested to know the why this changes were
>>>> commented  and why this made as a relative layered output.
>>>>
>>>> I made changes in the calender_date_select.js file as below
>>>>
>>>> Line no 123:(originally)
>>>> /* mod for OFBiz layered lookups
>>>>   var left_px = e_left.toString() + "px", top_px = (above ? (e_top -
>>>> c_height ) : ( e_bottom )).toString() + "px";*/
>>>>
>>>> Change made by me is:
>>>> /* mod for OFBiz layered lookups*/
>>>>  var left_px = e_left.toString() + "px", top_px = (above ? (e_top -
>>>> c_height ) : ( e_bottom )).toString() + "px";
>>>>
>>>>
>>>> Line no 128:(originally)
>>>> /* mod for OFBiz layered lookups
>>>>   this.calendar_div.style.left = left_px;  this.calendar_div.style.top =
>>>> top_px;*/
>>>>   this.calendar_div.style.left = "0px";  this.calendar_div.style.top =
>>>> top_px;
>>>>
>>>> Changes made by me is:
>>>> /* mod for OFBiz layered lookups*/
>>>>  this.calendar_div.style.left = left_px;  this.calendar_div.style.top =
>>>> top_px;
>>>>   /*this.calendar_div.style.left = "0px";  this.calendar_div.style.top =
>>>> top_px;*/
>>>>
>>>>
>>>> Line no 147:(Origianlly)
>>>> /* mod for OFBiz layered lookups       var style = { position:"absolute",
>>>> visibility: "hidden", left:0, top:0 }*/
>>>>     var style = { position:"relative", visibility: "hidden", left:0,
>>>> top:0 }
>>>>
>>>> change made by me is:
>>>> /* mod for OFBiz layered lookups*/
>>>>     var style = { position:"absolute", visibility: "hidden", left:0,
>>>> top:0 }
>>>>  /*  var style = { position:"relative", visibility: "hidden", left:0,
>>>> top:0 }*/
>>>>
>>>>
>>>> Regards
>>>> Soumya
>>>>
>>>>
>>>>
>>>> On Thu, May 27, 2010 at 2:34 PM, Jacques Le Roux <
>>>> [hidden email]> wrote:
>>>>
>>>> Soumya,
>>>>
>>>> Thanks for the link, I can't reproduce with the default Theme (Tomahawk)
>>>> using the 4 1st calendars on this page. Did you use another
>>>> theme?
>>>>
>>>>
>>>> Jacques
>>>>
>>>> From: "soumya jyoti guru" <[hidden email]>
>>>>
>>>> Thank you  Jacques for reminding me about the URL.The URL is
>>>>
>>>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=FA-001
>>>> with regards
>>>> Soumya
>>>>
>>>> On Wed, May 26, 2010 at 8:00 PM, Jacques Le Roux <
>>>> [hidden email]> wrote:
>>>>
>>>>
>>>> Please provide an URL from the demo trunk showing this error
>>>>
>>>> Jacques
>>>>
>>>> From: "soumya jyoti guru" <[hidden email]>
>>>>
>>>> Hello all ,
>>>>
>>>> I am facing a problem , when I click on any date time calender , It
>>>> expands
>>>> the form or ftl, which should not has to be the case , it should come
>>>> over
>>>> the form or ftl not inside , I also checked this on demo server and found
>>>> the same behaviour. I also checked some css file related to the calender
>>>> there are some line of code are commented , I dont understand the purpose
>>>> of
>>>> this. How I can fix this for my customized code.
>>>>
>>>> Thanks
>>>>
>>>> Regards
>>>> Soumya
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>