Non-scrollable view above WKInterfaceTable - watchkit

Does anyone know if it is possible to have a view above a WKInterfaceTable that doesn't scroll? I am needing to have some information stay at the top as the user scrolls, but no matter what I try the group/view scrolls out of view.

Related

Scrolling through a drop down menu on mobile not working

On this page I am working on a new drop down menu: https://www.audiobookreviews.com/genre5.php
One mobile the drop down list is too long and needs to be scrolled, but when you try to scroll it clicks the screen where you happen to touch. Is there a way to scroll a drop down menu on mobile?
You would want to give your dropdown a container with max-height that can overflow (show a scrollbar) if it's too big for screen (calc(100vh - <menu height>px) or anything), but it's hard to suggest anything further than that based on page alone - you'd need to attach a relatively isolated CSS+HTML snip of your dropdown to the question.

WKInterfaceTable get scroll position (contentOffset.y)

In UITableView I can call tableView.contentOffset.y; in order to get where the user has scrolled. However, WatchKit's WKInterfaceTable doesn't support that. Is there any way to get the scrolling position in the WKInterfaceTable?
Use case why this is necessary:
user is in the middle of a table
table updates
table scroll jumps to top
user has to scroll down again
I am able to scroll down programmatically with self.messageTableOutlet.scrollToRow(at: (size-1) but the user doesn't always want to get thrown to the end of the table. He also doesn't want to get to the top, he just wants to stay there.

Android : negative margins behave differently on different versions

I am writing an application where I need to move a view from top to bottom but only when user moves it downward. To move this view I have a button below the view to drag. So initially I place the view beyond top of the view i.e. with negative margin equals the height and only the drag button is visible at the top to user. I see that this works perfectly on Lollipop and view is just at the position where bottom of view matches the top of screen. When I try it on Kitkat and lower versions, the view goes more towards top than the edge of screen. I have this everything in a RelativeLayout.
To show that view is dragged downward I am manipulating bottomMargin and topMargin properties on view.
Has anyone came across similar problems? Thanks in advance.

Overflow scroll and show context menu

I've got div with overflow="scroll" on it, which is displaying content (icefaces app). I've got event for right mouse button with displaying context menu of element of this content, but context menu is displaying inside of this div, i must scroll to see this context menu. This context menu is hidden div - after mouse click it's set to visible.
It's physically putted inside of scroll panel (and it unfortunatelly must be inside). Anyone have idea how to resolve this problem (i tried everything from google). Maybe some js trick or something like that? ;)
Problem is that i need it out of this scroll ;)
Thanks a lot.
Matthew

ASP.NET AJAX Toolkit ReorderList with more items than fit on the page

I have a ReorderList on my page and it works just great, but...
Now, I have almost 100 items that I'd like to be able to reorder and they flow off the page, even at 8pt. When dragging, the page does not scroll as I approach the bottom (or the top) so I have to drop my item, scroll down, then drag some more. When I drag and drop in Word, as I approach the bottom of the window, the window scrolls so I can move to where I want to drop.
Alternately, it would be fine with me to have the items show up in multiple columns - their width would allow at least 3 columns. But none of the CSS solutions I have found which allow a <ul> to have multiple columns seem to work as they require multiple <ul>s which I don't think I can do with the ReorderList control.
Any ideas?
Here is an idea: Check if the left mouse button is being hold down, and also check for the position of the pointer on the page. If the coordinates are down at the bottom of the page at a position that you think is down enough for the page to be scrolled, then you could use the window.scrollBy() Method, and stop it when the Mouse button is released. You could also set a bool value when a Reorder item is clicked and while the button is down, and set it to false when it is released, and again the same idea, check for the position of the pointer.
Sample window.scrollBy()
Good luck!

Resources