The text fields for some of the jobs have stretched beyond the screen bounds. It's still possible to see the text but scrolling is required (annoying).
The effect happens when only one of the text fields contains text that exceeds the normal screen bounds.
Instead of wrapping to the next line, the text keeps going and takes the screen bounds with it.
These screenshots show what's going on:
Is there some sort of configuration that I need to do to make this useable?
The Jenkins version is 1.635
Related
My use-case is like this:
The user defined some tags (text like "#asdf", "#qwerty", "#let_me_think_about_it" and "#decide later"). I want to display these in a box without scrolling (and don't know, how many tags the user created until I display the box).
The box itself should not be scrollable at all but be shown in a UITableViewCell (which is being scrolled). So it must compute the proposed height and respond to Autolayout mechanisms. If a (ARM) Mac user resizes the window to be smaller than before (or an iOS user rotates the device), the box should increase/decrease its height, as necessary (within the limits of Autolayout, since I know of some issues). Each of the tags should be (de)selectable at the same time (UILabel with UITapGestureRegognizer attachted?) and be able to displayed 'selected' (via a background view).
So, the box should primary try to align all content horizontal. If There's not enough horizontal space, do a "line break" and continue on the next "line".
My current solution is a UIScrollView that the user can scroll horizontal and tap any of the (UILabel) views. The displayed views itself are being loaded from a NIB file, like a UITableView does. The issue here is that not any of the selected tags might be visible at the first glance.
If there was no Autolayout, I'd exactly know what to do. But since there it is, I want to use Autolayout in my NIB files and wonder what you would do?
(How do you compute the required width of such a view and decide when a line break is to be done (and how?))
I think I need a simple hint. But if it needs code to explain, ObjC and Swift is both acceptable. :-)
So, the box should primary try to align all content horizontal. If There's not enough horizontal space, do a "line break" and continue on the next "line".
This sounds like a job for UICollectionView with UICollectionViewFlowLayout. You can disable scrolling, and the layout object will tell you the size of the content so that you can adjust the size of the box.
(How do you compute the required width of such a view and decide when a line break is to be done (and how?))
If you're doing it yourself, you add up the widths of all the items on the first line, and if it's larger than the available space, you move the item that extends past the limit and any subsequent items to the next line. Repeat as needed. But that's exactly what a flow layout does for a collection view, so there's no need to roll your own.
I have an application where Konva is initially hidden (It's on the 2nd "tab" of a tab control on the page).
When the user clicks a "Save" button on this page, I'm trying to call Stage.toDataURL() to get the content in Konva. However, if the 2nd tab is never displayed, this always returns a blank image.
I've tried calling Stage.draw() before Stage.toDataURL(), but that didn't do it.
I've tried caching the Stage prior to calling Stage.toDataURL() also. No luck.
I don't have any images on the canvas, so it's not an issue of waiting for images to load.
Once the 2nd tab is displayed, even if the user then switches back to the 1st tab and re-hides Konva, it then works fine.
Is that a known limitation of Konva? That it won't render unless it's visible?
EDIT: Resolved
Some code was attempting to center and scale Konva within its container on page load. Since the container wasn't visible yet, its width and height were 0. This caused the code to set the Konva Stage width and height to negative numbers. Once I prevented that, it's able to export the image fine - even when hidden.
This is resolved. Some code was attempting to center and scale Konva within its container on page load. Since the container wasn't visible yet, its width and height were 0. This caused the code to set the Konva Stage width and height to negative numbers. Once I prevented that, it's able to export the image fine - even when hidden.
I have a UITextview. It has enough text in it that it flows into multiple lines. However when I run the app on a device, the text does not flow onto subsequent lines, it's as if the text is carrying on beyond the bounds of the view.
All the settings for the view are the default, but user interaction is disabled. The view has constraints which bound it to the margins of the viewport. I've coloured the background of the view to check this - the view is not running off the edge of the viewport, and has sufficient height that the 2nd and 3rd lines of text should fit on the view, but below the first line of text the view is empty.
What is going on?
I have a UITextView. The text in the view keeps changing based on user action. On many occasions, the text is too large to fit and so my text view (which has a desired fixed width and height) scrolls the text. The control flow is something like this
1) user takes some action, and text view appears with some text (possibly more than what can fit, so comes with a scroll)
2) user dismisses the view (I simply hide the text view)
3) user another action, and text view appears with new text (i use UITextView setText to reassign the text, and simply turn the hidden property to NO)
Problem Scenario:
Perform step 1 above, user scroll down a little to read the content, then proceeds with step 2 and 3. But when the text view reappears, the view is still scrolled a little from the last interaction. I want the text to be visible from the start, meaning, the scroll shud be "reset"
What I tried:
[textView scrollRangeToVisible:NSMakeRange(0,0)]; //OR
[textView scrollRangeToVisible:NSMakeRange(0,600)]; //600 being an approximate number of characters that can show in my text view after which they flow out and it has to be scrolled.
this was the most successful attempt. Worked most of the time, except, sometimes, intermittently, there would be a lot of extra space on top of my line 1 of the text, like someone scrolled/swiped it down and froze it there.
PS:My text cannot be edited by the user. It is always reset to a different string in code
I am having a usability issue where in an app screen, there may be too much text and I have nowhere to put that text.
I am attaching a screen shot of my screen. You see how the text on top has more text, but there is no room to put that text. So the text just ends in ....
What is the common way people handle this kind of a situation?
Thanks!
Redesign your UI so you have more room for that text. Maybe your content will need to scroll. You will need to change that label so that the max number of lines is greater (or 0 for unlimited), and make the frame larger to accomodate more lines. You can also reduce the font size a little to decrease how much extra space you'll need to give it.
If you really wanted to, you could use a UITextView for that text, which allows the text to scroll easily (it's a UIScrollView subclass). Then you could just scroll that text, though it wouldn't be very good UI and you would still want it to be more than one line, because scrolling when only one line is visible at a time would make it hard to read.