Jump to content

Visual inconsistency in Windows/Linux


rgreat

Recommended Posts

Same project. Same browser.

But UniPanels have different heights when generated by linux or windows standalone hosts, and some bottom controls even disappear from view.

Seems that that's depends on TitleVisible = True property.

Server on Windows:

image.png.6a30d1945790fb508633aafb59cb4a2c.png

Server on linux:

image.png.f210ba9d75d329e3dcd262b6289cf736.png

 Numbers in title are generated by code hook in uniPanel.pas:

function TUniCustomPanel.GetEffectiveHeight: Integer;
var
  BH : Integer;
begin
  Result := inherited GetEffectiveHeight;

  Result := Result - (GetBorderWidth * 2);

  if FTitleVisible or FCollapsible then
    case FTitlePostion of
      tpTop,
      tpBottom:
        begin
          BH := UniSession.CurrentTheme.PanelBandHeight;
          Result := Result - BH;
          
          if Pos(Name,Title)=0 then Title:=Name; 
          Title:=Title+' '+Result.ToString; // <-------
        end
    end;
end;

Why I have extra GetEffectiveHeight calls and numbers are different and incorrect on Linux?

 

Also: right margins are different too. By a few pixels, but still not good.

Link to comment
Share on other sites

  • 2 weeks later...

I think this is a very hard issue to solve due to the possibilities, demands and more urgent issues , and above all, Ext.JS dependency.
uniGUI Team: Remove uniGU dependency (or make optional)  of Ext.JS and make more compatible with pwa approach. Same things happens across all frameworks with UI focus.
Even Embarcadero not bothered to make a full UI FMX compatible set of components to linux/unbutu. Just try it and see.
Make a poll and ask how many users really make uniGUI apps to linux/Unbutu. Guess what, in stateful (unigUI, intraweb, Elevate, Komo, etc)  categories, there is no much options available either.

My two cents.

 

Link to comment
Share on other sites

I don't think issue is ExtJS based.

More like some core UniGUI code for server side alingment/sizing works diffrerent in linux.

Where would not be any difference in number of GetEffectiveHeight events fired otherwise.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Similarly, there are problems with render on the server... 

This creates additional work with ExtJS - frames have to be converted to the original ExtJS...and for the rest, use the Unigui communication model while losing some of the framework feature that were convenient and winning.

  • Like 1
Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...