For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 38 replies, 4 voices, and was last updated 13 years, 6 months ago by
support-octavio.
-
AuthorPosts
-
January 30, 2013 at 7:14 am #334764
Unknown AuthorParticipantLet’s get back to basics with some stupid questions:
1. Is your list inside your panel?
2. Are you doing a new preprocessDOM command after changing panel height?
3. Are you getting any runtime/compilation errors on the Java Console? (Test Center–>Local Storage–>Button on the bottom left)
4. All your brackets and semicolons are where they should be?I can tell you that using 2.3 is not the issue. I’m developing an app right now that populates a custom list based on Google Places search results. No problem scrolling at all. Like you, I’m also developing in Windows 7.
-1TC
January 30, 2013 at 11:18 am #334775
support-octavioMemberHi donij,
>I will appreciate if you could open up a new project add a list with some list items, add a button with onClick event that calls a function just to increase the height of the list…
Here is a similar request and modified sample project that we have provided in past: http://www.genuitec.com/support-genuitec/viewtopic.php?p=13511#p13511
January 30, 2013 at 12:14 pm #334778
donijMember@1thinchip
The forum is for constructive engagement…. and where decency prevails. I see you don’t understand the issue… and not offering any help….. lets have the experts talk. Appreciate your time. Thank you.
Thanks. I will look at the attachment and revert.
Cheers.
January 30, 2013 at 2:35 pm #334786
donijMemberOctavio, you are truly the man!!!!!!!! It works now. I analyzed the code you attached and found a key difference…. changing the height via css! I applied it in my own case and it worked…. the key code is as below. you saved a life!! Thumbs up!!
function updateListHeight() {
var $scroller = $(‘#m1-dynamicList-panel1-scroller’);
//Update panel’s content height, set the ht value on the panel’s
// scroller <div> data-layout-content-height attribute.
var liCount = $(‘#m1-dynamicList-txttestnumber’).val();// //$(“li”, $scroller).length;
var panelHt = 30 + (liCount * 44);
// alert(panelHt);
// $(‘#m1-list-panel1-scroller’).attr(‘data-layout-content-height’, panelHt);
$scroller.css(“height”, panelHt + “px”);
$scroller[0].myScroll.refresh();
}This case is closed!!
January 30, 2013 at 4:26 pm #334799
Unknown AuthorParticipantWell..That’s the last time I try to help anyone here, you ungrateful bastard.
January 31, 2013 at 11:03 am #334850
tteasdaleMemberOctavio,
Thank you for not closing this just yet, as I am still at a loss. Though my support topic was somewhat ‘commandeered’ by others, and their input is greatly appreciated, I am still having a bit of a quirk with my list. In both the code that I sent you folks via email and the modifications based on your example above, I still have the same result as follows: If you open the app in landscape or portrait mode the scrolling does not work propoerly, still bouncing back not allowing the user to see the end of the list. However, once you switch the orientation to the other, the list scrolling works properly and does from there on out until the user completely closes the app, not just exiting out.
As a bit of additional information, I do not have my panel which contains my list expanding the full height of the screen in the Design Center. It starts at the Y coordinates of 52 with a length of 588. I have saved the space below that for future advertisement. I am hopeful that this is helpful as I can tell that the last item(s) in the list would likely be viewable if the panel extended to the bottom in the Design Center.Thank you.
January 31, 2013 at 12:17 pm #334853
donijMembersorry we ‘commandeered’ your topic and I erroneously requested it closed. That was out of over excitement that I got a solution. Confident you will get a solution soon.
Cheers.
February 4, 2013 at 8:00 am #334992
tteasdaleMemberSupport – I’m affraid I may have been forgotten here. Can you please see my last reply as I am still need of resolution.
Thank you.
February 4, 2013 at 8:37 am #334993
donijMember@donij wrote:
.myScroll.refresh();
}!
Hi
Did you take a look at how my was resolved as in the above code?
Instead of using
$('#m1-list-panel1-scroller').attr('data-layout-content-height', panelHt);I suggest you replace it with
$scroller.css("height", panelHt + "px"); $scroller[0].myScroll.refresh();Try this and let’s hear from you.
February 4, 2013 at 9:00 am #334995
tteasdaleMemberThanks ‘donij’ but no, it also gave the same results as I stated in my posting on 1/31.
February 4, 2013 at 9:34 am #335001
donijMemberattached is a sample project. I used this to test panel scrolling function. It has just a panel, a text box and a button.
Enter a number into the text box and click the button to vary the scroller height. You will see the scroll bar change height,
Lets see if this could help out. Take a look at the dynamiclist_custom.js
Attachments:
You must be logged in to view attached files.February 5, 2013 at 10:37 am #335045
tteasdaleMemberI have confirmed, again, that the suggested code changes also do not work.
Support-Octavio, your assistance is still needed. Please refer to the project I emailed to you earlier at your request.
Thank you.
Donij, thank you for your efforts.
February 6, 2013 at 2:39 pm #335099
support-octavioMemberDev team is reviewing your project. I will follow up as soon as I get more information.
February 8, 2013 at 6:00 pm #335200
tteasdaleMemberThanks. Some additional information I just discovered. As previously
stated, the scrolling seems to work properly after rotating the device
to another orientation. But what I did not see before was that the
scrolling only works until I select an item out of the item list which
then causes the scrolling to resort back to inoperable. This could be
due to the rebuild of the list after the selection takes place. Hope
this helps.Thank you.
February 8, 2013 at 6:41 pm #335201
donijMemberI have tested my code too with the orientation thing and I experience the same thing.
-
AuthorPosts
