Project

General

Profile

Actions

Support #3658

closed

iframe to fill available space

Added by Anonymous over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/10/2014
Due date:
% Done:

0%

Estimated time:

Description

I am trying to embedded another page inside my Wt application using an iframe. I have figured out that I can use a WText widget to create an iframe. My problem is I can't figure out how to get the iframe/WText widget to fill the available space. Is there a way to do this?. The application is very simple, there is a single top level WVBoxLayout that contains WContainerWidget and the WText widget.

Actions #1

Updated by Koen Deforche about 9 years ago

  • Status changed from New to Feedback

There's a way to do it, by setting a 'wtResize' member function on your WText. This wtResize function will be called by the layout manager with the current size. Then you could, from JavaScript, manipulate the iframe and put the correct size.

Actions #2

Updated by Koen Deforche about 9 years ago

  • Assignee set to Koen Deforche
Actions #3

Updated by Koen Deforche about 9 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF