DialogViewController frame resize after UIImagePickerController - xamarin.ios

i have some problem with DialogViewController. This is modified example from xamarin monotouch examples(BubbleCell) that shows the issue dowload.
Shortly, i have UIImagePickerController from TweetStation, that collects image for profile photo. And DialogViewController below, that collects some information about user. As last row of DVC , i have custom UITableViewCell with textfield. If I just click on the field, it will work fine (I set ContentOffset to the general UIScrollView, and the textfiled moves just above the keyboard). But if I first click on the picture(that call UIImagePickerController), and collect image(or not , no matter), and after that click on textfiled, then the frame of DVC will displayed incorrectly(resize frame).
To see problem run project, press login-> chat with robot-> click textfiled on last row -> see correct animation-> click return on keyboard-> click on image -> select picture(or not , no matter) -> again click textfiled -> see wrong animation
TableView.ScrollEnabled=false on DVC is mandatory property.
How can i solve this problem ?
Thanks

Related

Robot- Selenium : How we can handle a element (text box) whose ID is changing dynamically

I am facing one simple problem-- there is one Add button in the web page, After clicking that a small pop up window (Not in another browser tab , without title) opened having 3 text box. These id/xpath is getting changed whenever will click on Add button. I need to to enter few data and then save.
Could you please help me how we can handle this dynamic xpath/id ---text box in robot selenium framework. Is there any way we can input on text box based on label. Please share any pointer or sample code.
Thank you very much for the help.

Ektron Widgets: Wrong widget being dropped on page, doesn't match the one I selected in the toolbar

I have a really weird issue with Ektron. A while back, I created a widget called NehgsTooltip. It worked fine. I later created another widget called NehgsLogin. Now, when I try to add NehgsTooltip to a page, the widget that appears on the page is called NehgsLogin.
The widget in my header has the right name
but when it gets dropped on the page the name changes
When I try to edit the widget, when I click the "choose" button, choose menu doesn't open. I'm not sure if this is because NehgsLogin doesn't have any options. However, when I manually enter the needed content title and ID and save it, the widget works as it's supposed to.
I can't figure out if there is an error happening in Ektron, or if the NehgsTooltip has just been misnamed somewhere. I checked the .ascx and .cshtml files and nowhere in there is the widget being names "NehgsLogin" (the phrase doesn't exist in any of those documents). I also checked the widget in settings, and both Widget Title and Widget Label are set correctly. What would be causing the widget to load as NehgsLogin, and is it actually loading the wrong widget, or is it just giving it the wrong title?
The title of the widget that you see in the Pagebuilder toolbox comes from the widget settings in the workarea. The title that is displayed on the widget itself is usually set in code behind like this:
protected void Page_Init(object sender, EventArgs e)
{
...
_host = Ektron.Cms.Widget.WidgetHost.GetHost(this) as Ektron.Cms.PageBuilder.WidgetHost;
_host.Title = "Archive Widget";
...
}
So I would check those two locations to ensure they are correct.
I see you are using CSHTML, and in another SO question you mention MVC, please not Ektron is not an MVC application.

nsoutlineview: right click without invoke "selection did change" delegate method

as the official "DragNDropOutlineView" sample project,
if i have already selected an item,clicked right button for menu,the right clicked item
will be selected & marked with a blue border,but selectionDidChange method was not invoked.
how did it implement?![enter image description here][1]
answer the question myself,
we can not implement this by coding, instead, we can create a menu in the interface builder, choose the table view or outline view, link the "menu" outlet to the menu you created just now.
now when you right click the item , it won't invoke the selectionDidChange notification.

Menu on a EnhancedGrid behaves weird when the container takes 100% width and height

I've spent some time simplifying the code to get a simple example of the problem. I'm using Dojo 1.6.1. I've a TabContainer defined on my page. Dinamically, I add to it two tabs, each one of them contains an EnhancedGrid with a rowMenu(right click). The issue is that the menu does not work correctly on IE8 if the TabContainer is defined to use all the space available on the page. If I use a specific height and width, it works fine. By not working correctly I mean the following: The menu is pretty simple; it has just two MenuItem, one of them is a PopupMenu that shows a submenu, as follows:
If the TabContainer takes all the available width and height, the menu does something very strange. First, if you do a right click over a row, it does not do anything. You need to a second right click. Then the menu shows, but when you open the submenu, the main menu disapears, and the submenu does not work. It keeps floating around until you navigate to other page:
When it fails, it throws a javascript error saying "'undefined' is null or not an object", on the line 208 of dojox/grid/_FocusManager.js
[...]
_scrollHeader: function(currentIdx){
var info = null;
if(this._colHeadNode){
var cell = this.grid.getCell(currentIdx);
info = this._scrollInfo(cell, cell.getNode(0));
}
[...]
I've tried to create a jsfiddle sample, but Dojo 1.6.1 is not available there, and with Dojo .1.6.0 the behaviour is diferent (You need to do a left click on the row and then a right click, and then the menu works fine), so I've created a simple HTML sample you can see on http://pastebin.com/jDNFQxrP. To see the difference you just need to change the commented TabContainer at the bottom of the code. Has someone seen this before?
Thanks
JL

MFC feature pack - how to update the property grid control

I'm new to MFC and is a bit confused with the new features of "MFC feature pack." Through the wizard I now have an application that looks like an IDE - has a dockable file explorer on the left side and a dockable properties window on the right side. I'm able to get the selected items on the file explorer window through ON_WM_LBUTTONDBLCLK and GetItemText().
Question:
Properties window should be "updated" after clicking an item in the file explorer window. Ex. I click an item "button" in the tree control, properties window should show "image", "font", and "color" How can I do that? How do you update the contents of the propertygridCtrl?
To fill the property grid, look at the wizard-generated content. You'd set up a handler for the 'item button' clicked event, clear the grid content, fill it again. Seems an obvious answer so maybe I misunderstood the question.
I don't understand where is your difficulty. Just have a class derived from CMFCPropertyGrid, add a public member function on it to Update its data, having one parameter. Call that function from the file explorer window, having the selected element as the parameter.
Maybe you are choosing the wrong to handle the fact of the user is changing the selected item? I don't know what class is your "file explorer" control, but I suggest you to use something to do with "Item changed" instead of "Click" or "LButton", as the selected item can change by other means, namely arrow keys!

Resources