FastCards Posted August 10, 2016 Posted August 10, 2016 Strange one. The buttons appear sometimes but not others. See attached picture for when they don't. There should be a Yes and No button on the bottom of the dialog box. The code has worked fine for months, years even and it only happens on chrome. Any ideas? Quote
Sherzod Posted August 10, 2016 Posted August 10, 2016 Hi, Hmm,and what code is used to show the dialog box? Best regards. Quote
FastCards Posted August 10, 2016 Author Posted August 10, 2016 All standard stuff, don't think it is anything in the code as the buttons appear sometimes and not others. Very odd. ... MessageDlg('Change all 0 performance codes to 6?', mtConfirmation, mbYesNo,setCodesTo6_CallBack); ... procedure TfWeekEditor.SetCodesTo6_CallBack(Sender: TComponent; AResult: Integer); begin if AResult=mrYes then begin App.WEEKS_Set_Shifts_To_6(privT1,privT2,privWeek); RefreshGrid; end; end; Quote
FastCards Posted August 10, 2016 Author Posted August 10, 2016 Also, it only happens on Chrome, the buttons always show up fine in IE Quote
mhmda Posted August 11, 2016 Posted August 11, 2016 I thought it happens to me only, the 'Yes' 'No' of the confirm dialog disappears. I use client side code, I thing that it maybe related to z-order of the mask screen? Ext.Msg.confirm('xxxxxxxxx', 'xxxxxxxxxxx'+selectedRecord.get('1')+'?', function(btn){ if (btn == 'yes'){ frmMngSchedules.grdSchedule.showMask('Please wait'); ajaxRequest(frmMngSchedules.window, 'removeStudent',["id="+selectedRecord.get('0')]); return true; } else if (btn=='no') { return false; } }); Any idea? Quote
FastCards Posted August 11, 2016 Author Posted August 11, 2016 Pretty sure this is nothing to do with Delphi code. The buttons show sometimes but not others and it only happens on Chrome, buttons always show on IE & Edge. Also, it only started 2 days ago and last software upgrade was 4 weeks ago so it must be an external (browser?) issue. Quote
Sherzod Posted August 11, 2016 Posted August 11, 2016 Hi, Need to analyze... Which version Chrome are you using? Can you reinstall a previous version of Chrome and check it?! Best regards. Quote
FastCards Posted August 11, 2016 Author Posted August 11, 2016 The original message in the dialog was "Change all 0 performance codes to 6?". The buttons were invisible. Extending the length of this message until just before a line break (see screen cap) didn't display the buttons. But... Extending the message a bit further so it splits onto two lines (see second cap) and Voila! The buttons are displayed. So, I'll extend the length of the message and upgrade and it'll work but I'd like to know the cause if poss. Thanks Andy Quote
Marlon Nardi Posted August 13, 2016 Posted August 13, 2016 Tests: Chrome: 52.0.2743.116 m - BUG Opera: 39.0.2256.48 - BUG Firefox: 48.0 - OK IE: 11.0.14393.0 - OK Edge: 38.14393.0.0 - OK UniGui: 0.99.95.1314 Quote
Administrators Farshad Mohajeri Posted August 13, 2016 Administrators Posted August 13, 2016 Can anybody reproduce this in a test case? Quote
aristeo Posted August 14, 2016 Posted August 14, 2016 This problem it's happening me, too, in last Chrome.version. Enviado desde mi Nexus 5X mediante Tapatalk Quote
aristeo Posted August 14, 2016 Posted August 14, 2016 If the text was shorter, the buttons show Enviado desde mi Nexus 5X mediante Tapatalk Quote
aristeo Posted August 14, 2016 Posted August 14, 2016 A hint. If i open the confirm dialog from a form, when before the users shows a submenú of a TUniMainMenu component, the buttons shows correctly. Strange! I think when a.submenu is showed the css needed by the confirm dialog is loaded. Enviado desde mi Nexus 5X mediante Tapatalk Quote
Sherzod Posted August 14, 2016 Posted August 14, 2016 Hi, Very strange,Works fine for me Best regards... Quote
Sherzod Posted August 14, 2016 Posted August 14, 2016 Can you make a small test case for this?! Thank you Quote
aristeo Posted August 14, 2016 Posted August 14, 2016 Andy Richmond, could you try you showing a submenú and tell us if the confirm dialog shows the buttons? Enviado desde mi Nexus 5X mediante Tapatalk Quote
aristeo Posted August 14, 2016 Posted August 14, 2016 I'm trying make a small case, buy i cannot because works ok! It's happening me in a large project Enviado desde mi Nexus 5X mediante Tapatalk Quote
md9projetos Posted August 14, 2016 Posted August 14, 2016 Just for curiosity,It happens with all themes,or just neptun as example? Quote
Administrators Farshad Mohajeri Posted August 14, 2016 Administrators Posted August 14, 2016 Seems to be a Chrome bug. Opera also uses Chrome engine. There is no way for uniGUI to send a js code which works on FF and doesn't work on Chrome! Quote
aristeo Posted August 14, 2016 Posted August 14, 2016 Seems to be a Chrome bug. Opera also uses Chrome engine. There is no way for uniGUI to send a js code which works on FF and doesn't work on Chrome! And why when a submenu is dispalayed, all works ok? Do you know the reason? Enviado desde mi Nexus 5X mediante Tapatalk Quote
mhmda Posted August 14, 2016 Posted August 14, 2016 Here is the Element inspect from chrome (the buttons are rendered): Quote
aristeo Posted August 14, 2016 Posted August 14, 2016 I think the problem is the left property of the button's css class Enviado desde mi Nexus 5X mediante Tapatalk Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.