I am using the text mesh pro input field
when the user clicks on it the keyboard has a space on the sides for some reason how can I fix it?
image
Related
I need to display a text message on screen.
Currently I am doing this with a Text view on a transparent window, so the text is overlayed on the screen, perfectly.
The issue is that if am working on a text editor, or Excel, the popup shows up it blocks the text editor by an invisible rectangle around the text, i am unable to send mouse clicks or text keys to the window that i was working on.
I know there are ways to do it, some applications already do it, I just need to know how.
Take a look at this question. It is in Objective-C but the API details you need are there, you just need to do the equivalent in Swift. Whereas that answer draws a transparent red border you will draw your text transparent.
can anyone tell me how to position an oracle form in the middle of the screen when maximize the window ?
Actually i have a form when i run it, it displayed at the upper left corner of the screen but i want it to be displayed in the center of the screen even while enlarge the window.
You can use CSS style for make this form middle of the page.
Is that form have fixed width?
Then use this style
.formSelector{margin: 0 auto;}
I think it will be working.
While testing our app with a new set of translations, I found that the translated text for some of the buttons are significantly wider than the english. The result is that the button text wraps to a 2nd line, which is either cut off by the button, or floating below on a 2nd line. It seems like I need to get the rendered width of the text in order to dynamically resize the buttons, assuming there's space in the layout for a wider button.
Is there a way to get the width of the rendered text of a button?
Unless you are using a monospace font for the buttons (why not do so, actually?), and render it using CSS en / em / ex units, you cant really predict the text width, only make an educated guess.
I have some UITextField, right aligned, with placeholders. I made it in Interface Builder with options: "clear button appears while editing", and "clear while editing begins" is deselected.
The text is correctly right aligned (first UITextField below), and when I tap in a UITextField, the text correctly move to left to give way to the clear sign (second UITextField below).
Now, when I tap on the clear sign, the field clears BUT the placeholder does not take the proper alignment to right, as the clear sign were still present and visible (third UITextField below).
Some fields, however, do it right (e.g. a and y fields here below).
What could it be?
Thank you.
This is actually a bug with UIKit. I had a similar problem with placeholder text being centered. It would center itself, but as soon as the device was rotated, the placeholder text would not center itself. I would have to manually tell it to center itself on rotation in the code. This should all be fixed in iOS 5. Have you tried it there yet?
I have a weird behaviour that has only shown up in the last week. I don't use IB, all the controls are created in code.
I have a text field with a keyboard active. The first time I load the text field and use the keyboard, everything works normally. The second time I use it, the typed text does not show in the text field. However, the text is in the text field programmatically. For example, I can use it to execute a search. When the keyboard closes, the text appears.
Some of my UITextFields have misaligned text. For example, I write "hello", and instead of displaying centered inside the field like normal, it displays shifted several pixels downward to the extent that the bottom of the text is cut off. It's almost as if another view is chopping the bottom off the text by obscuring it.
I use three20, but according to http://groups.google.com/group/three20/browse_thread/thread/d7c4bc1ee2f9590d#, Xcode is suspected of causing the problem. I seen the behavior on 2 diferent macs, one running with Snow Leopard (10.6) and the other with Leopard (10.5).
This is how the problem looks in Xcode:
It is not obvious, but there is text in that search field. Notice that the placeholder text is not show. However, if I hit Search, the code executes with the entered text.
This is how the app appears in the simulator:
I finally find the reason.
I call [textField becomeFirstResponder] in a function called from loadView. But I move it to viewDidAppear and everything work Ok...
I've seen that happen with text fields and affine transforms. If you rotate a text field using a transform, the text shows up in a seemingly random part of the superview. If you use a transform to move the text field to make room for the keyboard, you might be seperating the embedded text editor from the field itself. That would also explain why the text is in the code because the text attribute of the text field is not affected by the visual layout of the UI.