Logic Machine Forum
It's Possible insert a Iframe into a plan with enabled scrolling? - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: It's Possible insert a Iframe into a plan with enabled scrolling? (/showthread.php?tid=1021)



It's Possible insert a Iframe into a plan with enabled scrolling? - Habib - 04.10.2017

Hi,

I need for my customer a plan layout which include a list of Button, which are longer as the fixed plan layout.
I had the idea to insert a second plan (plan2 in my sketch) which is longer than the main plan (plan1 in my sketch) with the iframe function.
So it's possible to scroll the iframe.

After my tests with different visualisation configurations I#m a little bit disappointed. Either the plan2 is scaled in the iframe, or fixed in original size.

Can you help me out? It's possible to do that?

At moment I have several copys of the plan and If done some navigation buttons to jump to the next page. But that is not the favourote solution of my customer :-(

Here a sketch of my idea:

   


RE: It's Possible insert a Iframe into a plan with enabled scrolling? - morak - 04.10.2017

(04.10.2017, 07:46)Habib Wrote: Hi,

I need for my customer a plan layout which include a list of Button, which are longer as the fixed plan layout.
I had the idea to insert a second plan (plan2 in my sketch) which is longer than the main plan (plan1 in my sketch) with the iframe function.
So it's possible to scroll the iframe.

After my tests with different visualisation configurations I#m a little bit disappointed. Either the plan2 is scaled in the iframe, or fixed in original size.

Can you help me out? It's possible to do that?

At moment I have several copys of the plan and If done some navigation buttons to jump to the next page. But that is not the favourote solution of my customer :-(

Here a sketch of my idea:

Hi
Your best option is to use Usermode View: Center horizontally, auto-size width
BR


RE: It's Possible insert a Iframe into a plan with enabled scrolling? - Habib - 04.10.2017

(04.10.2017, 08:19)morak Wrote:
(04.10.2017, 07:46)Habib Wrote: Hi,

I need for my customer a plan layout which include a list of Button, which are longer as the fixed plan layout.
I had the idea to insert a second plan (plan2 in my sketch) which is longer than the main plan (plan1 in my sketch) with the iframe function.
So it's possible to scroll the iframe.

After my tests with different visualisation configurations I#m a little bit disappointed. Either the plan2 is scaled in the iframe, or fixed in original size.

Can you help me out? It's possible to do that?

At moment I have several copys of the plan and If done some navigation buttons to jump to the next page. But that is not the favourote solution of my customer :-(

Here a sketch of my idea:

Hi
Your best option is to use Usermode View: Center horizontally, auto-size width
BR

Thx for your Reply, but it doesn't work :-( I get a fixed IFrame without scrolling with that settings.


RE: It's Possible insert a Iframe into a plan with enabled scrolling? - buuuudzik - 04.10.2017

It is possible but instead Plan 2 you should create .lp file which generates such page with buttons.


It's Possible insert a Iframe into a plan with enabled scrolling? - Habib - 04.10.2017

lp-File? Please help me. What is this?
The content of the iFrame are other Buttons and Sliders from visu.


RE: It's Possible insert a Iframe into a plan with enabled scrolling? - Erwin van der Zwart - 04.10.2017

Hi,

I think there is a much easier methode, create a layout with correct width and a height of 2400px, and put this in custom CSS:

Set inside the CSS the original height of your plan to make sure the scrollable part is correct height

Code:
#layout-1 {
 position: relative;
 top: 10px;
 height: 768px !important;
 overflow-x: hidden !important;
 overflow-y: scroll !important;
}
Then you can put your content on the layout and make sure to have minimal 1 item on your plan or it won't show the plan.

BR,
Erwin


It's Possible insert a Iframe into a plan with enabled scrolling? - Habib - 04.10.2017

Thx Erwin. I will test it tomorrow and give feedback :-)


RE: It's Possible insert a Iframe into a plan with enabled scrolling? - Habib - 05.10.2017

Hi Erwin,

I think I don't understand your post in correct way.

The original plan you mean my plan1? Why 2400px. My Display resolution is 1280x800.

The IFrame should be 640x550. I put the CCS Code in vis. Graphics->CSS

What should be the Visualisation Config?

   

Thx for your help :-)


RE: It's Possible insert a Iframe into a plan with enabled scrolling? - Erwin van der Zwart - 05.10.2017

Hi,

You don't need to use a iFrame, just create a new layout, 1280*1600 so the height is twice the screen size. On this layout you set all your items you want to scroll in and out of your normal visu. In the css you set the height to 800 so the overflow is hidden (the other 800 px) and set it to the correct layout (now its layout-1)

Attach this layout to your plan and set at least 1 item on the plan itself (like time or date) otherwise it won't show the plan. (empty plan with only layout is not showed)

BR,

Erwin


RE: It's Possible insert a Iframe into a plan with enabled scrolling? - Habib - 05.10.2017

Ah, ok. But my customer gives me a layout design, which includes a little iframe with scrolling option. Below that he wants three Buttons (Cancel, Activate, Save) for Szene Control.
So I need an IFrame.