How to make UILabel display multiple lines in the Today Extension? - swift

I have been trying to not ask basic questions on stack overflow, but I cannot find a clue on the Internet related to this problem.
I wish to make my UILabel display multilines in my widget (Today Extension).
The "set lines to 0" solution works in the main app, but this doesn't seem to work within the widget. It keeps displaying only one line with '...' at the end.
Does anybody know how to resolve this issue? I will attach some screenshots to explain my problem further.

Increase the line limit number to 3 or more.
You can test the multiline wrapping by typing in the label yourself.
I know that setting it to '0' is suppose to work however when it comes to alerts and displays it does not always apply. I know that by giving it a number like '3' or '4' it is not dynamic, however, it will solve your problem with the notifications.
Alternatively you can use the "Autoshrink" feature, you can change it to minimum font size. By doing so, the application will shrink down the text to the font size you provided.
Some developers will also suggest checking the box, 'tighten letter spacing'
hope this helps.

Related

I am making a calculator that keeps all the different sums on the screen using flutter. Not sure how to approach this

I have been trying not to have ask but I need some help. I am building my first flutter app. It's a calculator and I can get a basic one working without problems I am even getting it to evaluate with each key press, whether it be from my numbers widgets or by typing directly into the textfield.
I want to make it a bit different. I have tried to come up with the best way to do this but am not sure how. I want multiple sums to stay shown in the textfield(I presume if it needs editing I need to use a textfield) with the result attached. (i.e 2+6+4=12 then on a new line have another 6*6=36 etc.) At any time updating the textfield with the keypad must update all the sums on screen.
I have tried to do this using just one textfield (splitting the text and adding the sums to a list then calculating each and adding them back), however seems very cumbersome and I don't think this is the best approach. I have also made a Dynamic list of textfields , but found it difficult to index each textfield widget (dont think this is the correct approach) Im not asking for code but ideas as to which route to take. Your help would be appreciated.

Mark Labels Not Displaying In Tableau 2018

Others have asked this question before, but no one has provided an actual answer to it. I can't get all of the marks/labels to display in my Tableau visualizations.
Selecting "allow labels to overlap" does not fix the problem. That displays several hidden labels for the smallest of the areas, and it places those labels at the top of the bars, ignoring the formatting that sets the labels to the bottom. However, whether or not that option is checked, the empty areas in the screen shot stay empty. And those areas are clearly large enough to display the missing labels without encroaching on any other label.
I'm guessing this is a bug in Tableau because there's no reasonable explanation as to why this is happening, but I'm new to Tableau and unsure how to address this.
While I can offer no explanation, this has been a reported problem for several years. Tableau's own documentation states to check the Allow marks to overlap checkbox, yet that doesn't always work.
I don't know if it's a bug so much as it is a complicated calculation for the rendering engine to determine what will and won't fit into a space. To the human eye it will fit but it's possible the underlying calculations inside Tableau don't see it that way. I find that particularly on dual-axis charts (like yours) this happens more frequently. I've done two things to get around it when it comes up:
Change font family or font size
Put more info into the tooltips so the end user sees the data when they hover.
If you wish to pursue this as a bug, you will need to contact Tableau Support and file a case. They will ask you to submit a twbx file to reproduce the issue.
I hope that helps.
Label -> Font -> Automatic solved the problem for me
You can select individual marks, right click to pop up a menu, and specify whether to always hide or always show the labels for the selected marks (overriding the default behavior)

Microsoft-Word: hide overflow in a table-cell

I have a Word-File in which I'm going to add content programmatically.
The content is going to be added into table-cells and thats where the problem starts:
The Word-File looks like this
The cell where it now says "000000873588" is the one being filled by my application. This is working fine until someone enters a string thats too large like so:
The text is being broken down onto the next line which leads to my document actually adding a second page at the end because the whole content doesn't fit anymore.
Now I know the easiest way would be to already truncate the string in the application itself, but this would require me to know the exact cell-size of each cell in the document, which I don't as I have 12 different document-templates that are all being filled programmatically.
Is Word able to set a table-cell to a fixed size and then just cut off the overflow? I can't really imagine it not being able to. I did quite some research but the only thing I found was keeping cells together over page-breaks which is not what I need.

TinyMCE 4: Plugin-Window - word wrap available?

I try to migrate our custom plugins from TinyMCE 3 to 4.
In some cases there is some text in the plugin's window to describe how to use it.
Fiddle example: http://fiddle.tinymce.com/Hndaab/1
So if the text is very long, the window width increases until some parts are out of the viewport.
How can i tell the WindowManager to use automatic word wrapping for my labels?
I already tried to define a width for the window. And in another plugin i found a param "multiline". Both didn't solve my problem.
Any ideas? Thank you
I've been trying to accomplish something similar for mobile commpability where the windows are to large for the viewport and so far the closest i've gotten is to set the css for .mce-window to
.mce-window {... max-width:100%;max-height:100%;}
maybe that will be enought to fix your specific problem, even if I still have some ways to go for it to fluidly only fill out the available viewport space on all other windows.

Combobox show text properly

I have a combo box that when I open it should show text like
However I get something like
with the scrollbar set to middle. Thing is sometimes for the same values it shows properly
and sometimes it shows from middle(for same value).
I want it to show properly like in the first image and I've tried a couple of things but with no succes.
itemSection.setHoverAlign(Alignment.LEFT);
itemSection.setTextAlign(Alignment.LEFT);
itemSection.setAlign(Alignment.LEFT);
... and other irelevand stuff ...
Any help is highly appreciated. Thanks alot!
If I am not getting wrong, You want to set your scrollbar at particular position. FOr that you need to ovverride the css of that and try to set scrollbar position to 0. So that your problem will get solved.
The problem with any kind of selections box is, that the boxes display and behave completely different across browsers. The older the browser the worse it handles long texts in selection boxes (some just truncate the text). I suggest to keep the displayed text as short as possible. That way you can avoid this problem.
If you really need long description, you can try to add a tooltip to every entry. Or use a different widget to make the select from, e.g. some custom widget in a separate dialog...