View is Clipping its Content error - xcode

I'm using Xcode 4.6. In a window I keep getting this "view is clipping its content" error and when I click on it, the XIB editor highlights a label. What is this error trying to tell me and how to I fix it?

First, clicking on the text "View is clipping..." will select the control that has the issue. it happens when you resize a text field too small for the inner text field cell to fit in. enlarging the control makes warning disappear. you can also select the inner cell and go to size inspector to see if there are options to make it smaller to match your desired overall size.

You have a carriage return / newline at the end of the text in your label. That empty line is part of the "content" which is larger than the "view". Get rid of your extra newline and you'll take care of this.

It's telling you that your constraints hasn't been set up correctly. You can resolve the by clicking on the view in question, then clicking on the small icon at the bottom and choose: "Reset to suggested constraints"
Or you could click on the little small orange (or red) arrow in your Document Outline (the list to the left of your view that shows all views), then click on Resolve Issue

Related

How to more easily "update all frames" in autolayout in Xcode7?

The "Update Frames" calls are often grayed-out in Xcode
the only way I know to have it update frames to match your constraints, is, tediously select your highest-level view and than (sometimes) you can fish in the menu bar for "Selected Views"->"Update Frames". Further, "All Views"->"Update Frames" would appear to often simply not work or work in a way I can't understand.
Surely there's just a keystroke or button which updates all frames straight away to match any newly-entered constraints (such as those made using control-drag).
Note .. for 2016 you can use this very handy button, which at least brings up the same sub-menu as you can find by searching in the menu bar menu.
However it would seem (see my comments w/ ZaBlanc below) that there is perhaps actually an Xcode bug, and you CAN NOT assign a keystroke to the "All Views" items. (The ones you usually use.)
Even worse .. in Xcode 8 ...
they seem to have removed the 'update frames' option ... WTH
It's easy. Go to Preferences -> Key Bindings. Type "Update Frames" on the top. You'll see two appear. You'll want the bottom one (it will be the one without a keyboard shortcut assigned.)
Assign it to ⌘= or anything else you like.
Life changed.
Just for anyone reading, with Xcode 8.3. The popup menu command no longer exists. The menu bar command Editor -> Update Frames does work. However there's a bug, the default key binding on that does not work. If you add a custom key combo, that custom key combo does work.
AFAIK, there is no keystroke for update all frames, but here's a key tip:
If you have a misplaced views, press the yellow arrow in the document outline (the views tree to the left of canvas), press yellow triangle on any view in the list, then select update frames and check Apply to all views in container - this will update all misplaced views in the selected view controller
Additionally, you probably already know:
You can add a new constraint with Add New Constraints button in canvas bottom right and select "Update frames" option.
You can select any view by mouse-click and holding Option+Shift keys - this will show you the list of all the views, that intersects with mouse pointer. After that you can select update frames menu item on a selected misplaced view.
The same as you, I thought that it's very annoying to fix the misplaced views manually by selecting them and choose that boring option from Xcode menu. After trying hard to shorten the time to fix the layout issues, I had to admit that there is no way to call the function "Update Frames" from command line. So I ended up doing this way:
Open Xcode warnings & error inspector window
Filter all layout warnings by using the keyword "frame for"
Click on warnings to quickly locate to the misplaced views then press Command + Option + =
That's the fastest way I know. Please try it out!
You could also find more details HERE

Not about programming, but issues with SublimeText UI

Does anyone know (a) why this is happening and (b) better still, how I can fix it.
When I right-click a folder in the sidebar and select "New File" the dialog that shows the textbook to enter a new file name is partially hidden behind the status bar.
I have tried toggling off the status bar, but then the new file dialog just shifts down even lower.
You can simply resize vertically the panel by dragging it.

Puzzled by Xcode search path editor

Double clicking the text field for a search path in Xcode 5 brings up what seems to be an editor but it contains no apparent way of saving what has been changed. See the screen shot.
It has a little pointy hat that isn't shown as well.
If I move the box towards or away from the text field it represents it disappears and the changes disappear too. What the hell is this and what am I doing wrong?
You don't have to explicitly save it. Just click the + button, enter a path, then click anywhere outside of the popover to close and save it.

Microsoft Word Highlighting Text White

For some reason, whenever I create a Text Box and start typing, the background text is highlighted white and I can't make it transparent. This picture should explain everything:
I want to remove the highlighting so the gradient in the background shows through. I used to do things like this a lot, but for some reason Word won't let me now. Any suggestions?
I am on Word 2011 Mac
Got some clues here and finally found a solution for MSWord for Mac version 16.9:
Select the text you want to fix
Select "Design" Tab
Click "Page Borders"
Click the "Shading" Tab
Select Apply to "Text"
[Fill] is showing "No Color". Open the selection and re-select "No Color"
Hit "OK"
Worked for me. It is obviously a bug in Word.
Right-click the text box that you want to make invisible.
If you want to change multiple text boxes, click the first text box or shape, and then press and hold SHIFT while you click the other text boxes.
On the shortcut menu, click Format Text Box.
On the Colors and Lines tab, in the Fill section, click the arrow next to Color, and then click No Color.
On the Colors and Lines tab, in the Line section, click the arrow next to Color, and then click No Color.
Click OK. Your textbox's background is now invisible...
It seems the actual text highlight is your problem, so try:
Go into Borders and Shading, apply it to text, and set it to clear. Had me confused because I've never had to do this before.
As seen here.
I also searched around and had trouble finding this.
In Word for Mac 2011
Highlight the text
Click tables in the ribbon
Find the shading icon (looks like a paint bucket)
Click the down arrow next to the bucket and select No Fill
Change the text format from anything apart from Normal text.(important)
Solution 1
Select the Text box and go to the "format" tab,
modify the outline and fill options
if this isn't enough
Solution 2
select the Text box and right click for options
select the last option "format shape"

Scrolling text in a dropdown menu

I' m experiencing a little problem reguarding the marquee tag.
I have a select dropdown menu, which has some option. Some of those option contain text longer then the width of the select tag.
I just want to make those text scroll from right to left. I tryied out the marquee but it haven' worked.
Any idea on how to show the hidden overflow text? It's not necessary that the texts moves, I would like to add the chance to view the cut text. Resizing is not allowed in this case(most of the option are made of just one or two words, the others are quite longer)
Thank you all for your attention.
Filippo

Resources