Jump to content

Recommended Posts

Posted

This works for TUnimTreeMenu

  CustomCSS.Add('.x-treelist-nav');
  CustomCSS.Add('{');
  CustomCSS.Add('  overflow-y: auto');
  CustomCSS.Add('}');
 

How do we do the same with TUnimMenu ?

The JS code below fails

UniSession.AddJS('Ext.onReady(function(){'+ Menu.JSName +'.setConfig({scrollable:"vertical", width:"20%"});})');
Posted
20 hours ago, andyhill said:

As requested

Project1.zip

Can you try this approach for now?

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  UniSession.AddJS('Ext.onReady(function(){var rm=Ext.Viewport.getMenus().right; if (rm) rm.setScrollable(true);})');
  ...

end;

 

Posted

Fails, makes no difference on Mobile iOS ?

If it helps, Menu is Hidden by default and is only shown via a TitleButton selection.

  • 2 months later...
×
×
  • Create New...