Problem:
I created an Aikau page from the Aikau tutorial example. If I call my service with url ...hdp/ws/... , then the result page is some pixel wider than a browser tab and it appears a horizontal scroll bar.
1. Solution
call this service with ...dp/ws/... url and add the header and footer manually. See the implementation of faceted-search in Alfresco-Share in github.
- import share-header.lib.js: <import resource="classpath:/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.js">
- import share-footer.lib.js: <import resource="classpath:/alfresco/site-webscripts/org/alfresco/share/imports/share-footer.lib.js">
- add default heder services: var services = getHeaderServices();
- add your services: services.push({name: "alfresco/services/SearchService", ...
- add your widgets and services to the model, use for it a method from share-footer.lib: model.jsonModel = getFooterModel(services, widgets);
2. Solution
call this service with ...hdp/ws/... url again and patch only the hybrid-page.get.html.ftl template:
- copy the file hybrid-page.get.html.ftl from Alfresco-Sources sto your share project: /src/main/resources/alfresco/web-extension/site-webscripts/org/alfresco/share/page-templates/hybrid-page.get.html.ftl
- add the standard Alfresco-Wrapper to the templateBody: <div id="doc3">
This wrapper exists in every Alfresco template, but miss in Aikau (Aikau version 1.0.89).