<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false"><div dir="ltr" data-setdir="false"><div dir="ltr" data-setdir="false">Hi all,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I am trying to open the layout designer with the first Layout of the project and Zoom to full, but it only works after I click the second time. I think the problem is that I am not waiting for layout map render to finish (Please see the code below)<br></div><div dir="ltr" data-setdir="false">Does anyone can help me?<br></div><div dir="ltr" data-setdir="false"><div><div><br></div><div dir="ltr" data-setdir="false">Best regards,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Jorge Almerio<br></div><div>        <br></div><div>project = QgsProject.instance()         </div><div>manager = project.layoutManager() </div>layouts_list = manager.printLayouts() <br></div></div><div>if layouts_list:</div>            l_out = layouts_list[0]<br>            self.iface.openLayoutDesigner(layout=l_out)<br>            designer = iface.openLayoutDesigners()[0]            <br>            designer.window().showMaximized()<br><div>             <span>designer.view().zoomFull()</span></div>else:<br>            self.iface.messageBar().pushMessage("Uteis: ", self.tr('There is No Layout defined!'), level=Qgis.Warning, duration=5)</div><div><br></div></div></div></body></html>