I have a case where there is a scroll view for the graph in core-plot. On scrolling to the right, the labels of the y-axis is hidden. Is there a way to fix it visible throughout the scrolling session of the graph?
If your graph hosting view is inside a scroll view, there isn't anything you can do. If you're using the built-in scrolling, set the axisConstraints on the y-axis to pin it to the left or right side.
Related
I have an ag-grid-react set up with a series of components in place for cell rendering. When my dataset loads the vertical scroll works well but the horizontal scroll isn't obvious unless using a trackpad or horizontal scroll enabled mouse.
I would like to be able to add a scroll bar to the top of the grid as well as the automatically generated one at the bottom?
Has anyone encountered this, come up with as solution?
Thanks in advance.
Note : I found this solution How to add a horizontal scrollbar on top of the ag-grid but seems this is old and not working.
I'm trying to create a complex view using SwiftUI.
I'm trying to do a profile view with two scroll views on top of each other. I created wireframes, so it's easier to understand.
Here you can see the red and blue rectangle. They are both scroll views. I'm trying to achieve that the blue rectangle must only be scrollable from its content (blue section) but must be able to cover the whole screen when we scroll on it. See the next two states:
I tried adding some content inset using the library SwiftUIX, but can't seem to find a way to disable the scrolling mechanism on that content inset. So the red section of the wireframes must still be scrollable when scrolling on that area.
I tried only using drag gestures with offset, but the feeling was not as smooth as a scrolling view, and I could not mimic that feeling.
The default Apple implementation for a bottom sheet is not ideal because it works in steps, whereas I need it to be as smooth and controllable as a standard scroll view.
If any of you had any leads or ideas, it would be life-saving. I have spent hours on this and have been able to find a suitable solution.
In the previous version of Appium, I can use scroll functions to scroll to the particular element which is not visible on the screen.
My requirement is I have a Layout, in which many elements are there and that layout is scrollable. The element which I want to click is not visible on the screen and I have to scroll to a particular element and click that?
Can someone help me out on this issue how to scroll to the particular element?
In latest version of appium to scroll on the screen or to scroll the tables or to implement drag and drop functionalites we have to use TouchAction.
If we want to scroll in a scrollable layout first we have to get the bounds of that layout and give the coordinates in side that bounds.
Consider the below line of code.
new TouchAction(driver).press(300,200).moveTo(300,100).release().perform();
In this line of code we will perform the scroll down by 100 points.
.press(300,200) // Start at 300,200
.moveTo(0,100) // Increase Y by 300, ending up at 300,100
You have to pass the coordinates based on your requirements.
Find the details in below link:
https://appium.io/docs/en/writing-running-appium/touch-actions/
Using the SwiftCharts library, I have a chart of candlesticks. And they are generated and I can track them. But some on the far right are not visible on the screen / seem to be behind some other views of the chart?
You can, however, see them here in the view debugger which confirms they exist (on the far right):
How can I make sure all candlestick views are displayed?
Ah, it turned out the container view of the chart view was clipping bounds. This one liner right before adding the chart.view as a subview fixed it:
chart.containerView.clipsToBounds = false
I have four HighCharts on a page, stacked vertically. In each of these charts I have buttons that change the data range and re-load the chart.
This works fine for the top two, but when the chart re-loads on the bottom two it moves the screen up the page, always to the same point.
With some testing I found that it doesn't matter what order the charts are in, and also if you click the button on the top form and scroll down the page, it moves the page back up to the same position.
It's like HighCharts has a lower limit on where the page an be and always moves it back to this position when a chart is loaded.
I can't find any settings within HighCharts or anything on Google that will sort this.
I thank you all in advance for your help
Paul
It's because chart container height for a moment gets smaller on chart reload. You can fix this by setting fixed container height.