Jump to content

Hide Scrollbar of TuniContainerPanel


erich.wanker

Recommended Posts

Hy,

 

i have a TuniContainerPanel - in the TuniContainerPanel i have a bigger TuniImage .. so the TuniContainerPanel shows me a Scrollbar.. a correct behavior :-)

 

how can i hide the Scrollbar of the TuniContainerPanel  ???

 

i used "function beforeInit(sender, config)  {  config.scroll = false}"  but doesn´t work ...

 
 

ThanX for Help

 

Erich

Link to comment
Share on other sites

Hy Farshad :-)

nice greetings from Gastein 

 

.. AutoScroll is false ..

 

i load different images at runtime .. 

procedure TMainForm.UniTimer2Timer(Sender: TObject);
begin
UniImage9.Picture.LoadFromFile(mainform.datenpfad+'background'+inttostr(main_bildnummer)+'.jpg');

is this the reason ?

Link to comment
Share on other sites

.. Found a solution...  :D

 

 

css

 

.hidescrollbar {
    overflow: hidden !important;
}
 
ExtEvent of UniContainerPanel :
 
function beforerender(sender, eOpts)
{
  sender.addClass('hidescrollbar');
}

hth

Erich

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...