Approved
Last Updated: 23 Mar 2017 09:24 by ADMIN
ADMIN
Martin Ivanov
Created on: 04 Aug 2014 09:00
Category: HtmlPlaceHolder
Type: Bug Report
2
HtmlPlaceholder: The control is misplaced when you zoom in/out the browser window
The control is misplaced when you zoom in/out the browser window.

To work this around you can manually calculate and set the top and left positions of the HTML presenter. 

this.htmlPlaceholder.Loaded += (sender, args) => { this.htmlPlaceholder.LayoutUpdated += htmlPlaceholder_LayoutUpdated; };

private void htmlPlaceholder_LayoutUpdated(object sender, EventArgs e)
{
    this.Dispatcher.BeginInvoke(delegate
    {
        double controlTop = GetTop();
        double controlLeft = GetLeft();
 
        htmlPlaceholder.HtmlPresenter.SetStyleAttribute("top", controlTop + "px");
        htmlPlaceholder.HtmlPresenter.SetStyleAttribute("left", controlLeft + "px");
    });           
}
3 comments
ADMIN
Martin
Posted on: 12 Aug 2014 06:29
Hi Dalibor,

I am afraid that currently there is no workaround for this issue and we cannot bind to any time frame for its fix.

Regards
Martin Ivanov
Dalibor
Posted on: 11 Aug 2014 09:53
When can I expect issue beying resoved? 
Dalibor
Posted on: 04 Aug 2014 09:55
Original support ticket: http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=845585