How can i control scroll bar position for a sap.m.page. That is on click of a button, the page should be scrolled to top.
I tried using "page.scrollTo(10,0)", but didn't work.
Please correct me if m wrong.
Thanks,
Sathish
The one which i tried is correct, but the positive values is for scrolling down.
So i have done like this
"page.scrollTo(-10,0)"
Its working for me.
Regards,
Sathish
Related
I've got screen layout as shown in the screenshot below.
All looks good on screen but the button just won't react to any user input - i.e. connected #IBAction doesn't get triggered.
I believe that a specific constraint is causing the issue but I can't figure out why and they all look healthy to me.
Can anyone spot it or make out what the problem is?
Thanks for your help in advance!
As pointed out by #matt, I had a missing height constraint for the surrounding Container View. Once I added that the button did respond to user input again. Cheers #matt!!
I have some slides, maybe 20 or more than, in ion-slide-box, and each slide has ion-view tag, and some slides has an image, which can zoom. I meet some difficulty that when I click an button to show the ion-slide-box on ion-view, it needs waiting some time. Some I want to render the first slide and render others in $timeout. But I don't know how to do it.
Is there anyone who knows how to achieve it? Thanks a lot.
SUPPLEMENT:
I think I found a way to solve the problem.
I have a search icon, when i click on that, a search popup will opens(which is actually a vertical panel). In this Date textboxes are there. when i am clicking on a Data textbox. Its coming, but its behind the Vertical Panel popup.
My question is, when datebox is clicked, Calender should come front. What i have to do for that.
Can anyone please help me.
Thanks in Advance,
Saritha.
You need to set the CSS z-index property for the calendar to a higher value than the popup's z-index.
I had the same problem and Using z-index didn't work for me. I removed all z-index values from style sheets instead, and so far it worked.
Hope it can be of use for you.
G.
I want to customize tab through height only. When I do through, my text gets down. How to make it on top or middle after reducing the height? I tried android:gravity="top" and middle, but its not working. What should I do?
Mitt u can try this http://devtcg.blogspot.com/2008/03/advanced-tab-activity-demo.html. I hope it will work for u
Click the header section(or whatever it calls) will unfold the relative subcells,and the left triangle get rotated.
I have no idea how to code this.Is there anyone help me? Any code snippets would be great help.Thanks a lot.
That is a UITableView. You will need to add transparent buttons or a similar UIControl to the section headers to trap the tap events and then load the cells underneath
you can now see how to properly do it in an
example by apple.