MGWT app showing keypad issue in ios7 - ios7

I developed an app using MGWT.It is working fine in ios6. I upgraded to ios7.here I'm facing few problem I have 10 MTextBox widgets, I want to show all in my view.for this i add them to a WidgetList and I added my widgetList to a scroll panel and finally I added my scroll panel to main layout of the view,.till now no problem at all, but when I tapped on the 6,7,8,9,10 th textboxes, the ios keypad is appearing. this appearance of keypad overlapping my 6,7,8,9,10 textboxes. because of this overlapping these textboxes are not even taking the text input.
thanks in advance.

I found the answer to my question. We can resolve the above issue by setting the viewport height to device height, this can be in 2 ways, one is myapp.gwt.xml configuration and the other is, adding these lines in our onModuleLoad()
1)xml configuration:see this:viewport height adjustment
2)code snippet::
MGWTSettings settings = MGWTSettings.getAppSetting();
ViewPort viewPort = settings.getViewPort();
viewPort.setHeightToDeviceHeight();
viewPort.setWidthToDeviceWidth();
viewPort.setUserScaleAble(false).setMinimumScale(1.0).setMinimumScale(1.0).setMaximumScale(1.0);
viewPort.setTargetDensity(DENSITY.MEDIUM);
settings.setViewPort(viewPort);
MGWT.applySettings(settings);

Related

iOS / Titanium: Clear Button cannot be seen on a TextField with a black background

I want to add the clear button on the TextField like so:
<TextField clearButtonMode-"Titanium.UI.INPUT_BUTTONMODE_ALWAYS" backgroundColor="black"/>
The clear button usually looks like this:
However the issue is that the background of the TextInput is black. This means the clear button cannot be seen.
How can I change the appearance or colour of the clear button so this is not an issue?
I know that it should work but if its an ti sdk issue then you should try to test it with other ti sdks.
If you find same issue then you can file a JIRA issue with test app and then you can use rightButton property to achieve what you want.
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TextField-property-rightButton
To be completely honest man. you could just add a view inside the textField. I think its bit more efficient anyways and if you code by percentages as long as your border radius is more then half the height it will be circle.

.net - vb.net Horizontal Scroll Bar on DataGridView

I have a DataGridView on a Windows Form that can have up to 25 columns and up to many thousands of rows. There are no defined columns in the DGV, these are dynamically generated in the code. No columns are frozen. The DGV works as expected in the version I inherited. Then I got my hands on it…
I am adding a toolbar to the form. The issue I am facing is that when I lower the top of the DGV to fit just below the toolbar and ensure the DGV fits on the form, I lose my horizontal scroll bar. I can scroll the thumb off the form, so it is no longer visible. My Document Count field shows as expected in the image below.
DGV no horizontal bar and thumb scrolled off form
Some potentially related field values from DGV Properties:
AutoSizeColumnsMode = None
AutoSizeRowsMode = None
Dock = None
ScrollBars = Both
Any input would be much appreciated.
Added a Screen Shot to help clarify the issue.
Design View of the form
Solved! Thanks #Luke #LarsTech for suggestions. Not sure why but recreating it solved the horizontal scroll bar issue. I deleted my grid and recreated it in the Designer just like the previous one. This time I used Dock Right instead of None or Fill. I did use BringToFront also, because SendToBack shrunk my toolbar to half the size. I lost my blank area on the right of the grid, but i can live with that.
Thank you so much for the help!

Xamarin - how to center controls using the IDE , visually?

I have a splashscreen / launchscreen. It contains a title (label), an image 300x300 and a small label that says copywrite info. I'm trying to center the 3 controls vertically so they fill the screen. (at least look nice) I can't figure out or find instructions how to center the 3. I can create vertical constraints, width contraints and constraints relative to the other controls. But they never appear centered on iPhone5, iPhone6, 6plus etc...
how do you center 3 controls vertically and horizontally using the IDE, so they appear correctly on ALL devices/layouts?
thanks in advance.
how do you center 3 controls vertically and horizontally using the IDE, so they appear correctly on ALL devices/layouts?
Its strange that Xamarin Studio doesn't have a quick auto layout toolbar similar to XCode where you can align your controls vertically or horizontally with one click.
But they provide one not so obvious way to do it.
1. Make sure when you place any control on any screen on storyboard, you place it vertical center with the help of guiding lines.
2. Once you place it click on the control again when it shows the constraint guidelines.
3. At the center of the control there is a dot, drag that dot to until you see the vertical guideline and place it once the line turns blue.
Now your control should be aligned vertically center for all devices.
Hope this helps, happy coding :)

Xcode UITextView Still not scrolling using storyboard

I am trying to initiate a scroll view in my UITextView and even though I seem to have selected the appropriate boxes, I can't seem to get the scrolling working. I have gone through multiple questions similar to this but none seem to have the answer.
I included an image of Xcode below:
Question 2: When I scroll down the majority of my text shows but the scrolling stops with two sentences or so left and I have to scroll down and hold it there to read. Any way I can fix this so it scrolls all the way to the bottom of the text?
Can you check the two boxes: Bounce Horizontally and Bounce Vertically and see what's happening? Sometimes your content are actually way bigger than your view, and they are touching a invisible outer box. If you can see they actually move, that means there is nothing wrong with touch or scroll, is just the view layout problem.
For the content issue, my guess is that the content size is not right, you can programmatically adjust it with textView.frame property, set it to a proper size, such as the frame of the window or the frame of the content, which are CGRect classes. Comment below to see if this can solve your second problem.
The text view will not scroll in storyboard, only the app. And the text view will scroll once the content in the text view exceeds the frame size.
If you're using iOS 7+, you can just turn on auto layout, pin each of the sides of the text view to the edge of its parent view, and it works fine without needing to do anything in code.

Drag using Toolkit Gestures goes crazy on Landscape Orientation

In a WP8 app, I have a ListBox bound to an ItemsSource with a Grid as it's ItemsPanelTemplate. The layout of the Grid might be different each time (different number of rows/columns) based on user selection and I'm using a helper class in order to bind the ItemsPanelTemplate Grid's Row and Column Definitions to values read from a database.
The user can add item's to the app and assign each item to a Grid cell in the ListBox. Each item can "sit" in multiple Grids (a many-to-many relationship), which led me to use another binding helper class in order to set the bindings of Grid.Row and Grid.Column attached properties in the ListBox.ItemContainerStyle, bound to a property of the ItemsSource class.
Another requirement is to have the app in Portrait orientation when Rows.Count >= Columns.Count and in Landscape when the columns are more.
I'm also using the Toolkit Gestures for drag and drop operations.
The issue in question, is a drag issue on Landscape orientation. While everything works great on Portrait, while on Landscape orientation the ListBox goes crazy. The dragging happens to different cell's that those actually being dragged and some of them don't even raise the gesture events (DragStarted, DragDelta, DragCompleted).
I'm lost here, don't know what the issue might be, or how to solve this.
Need your lights please.
Here is a sample that illustrates the problem.
EDIT
Phew, it's a bug of the GestureListener on the toolkit. It does not respect the Landscape orientation and treats the UIElements as if they were rendered in Portrait.
Using the Manipulation Events instead, which work properly. Can I have my 50 bounty points back? :P
If it is not gesture listener but Manipulation Event you are looking at there is couple of good questions out there:
Drag and drop from list to canvas on windows phone with MVVM
Moving Object in ScrollViewer