Temporary iOS realization of visible viewport.

This commit is contained in:
Daria Volvenkova 2016-09-07 16:40:01 +03:00
parent 24834ce40c
commit 15ef506779

View file

@ -121,6 +121,8 @@ double getExactDPI(double contentScaleFactor)
dispatch_async(dispatch_get_main_queue(), ^
{
GetFramework().OnSize(width, height);
// TODO: Temporary realization of visible viewport, this code must be removed later.
GetFramework().SetVisibleViewport(m2::RectD(0.0, 0.0, width, height));
[self.widgetsManager resize:CGSizeMake(width, height)];
self->_drapeEngineCreated = YES;
});